Re: Django - Multiple columns primary key

2010-09-12 Thread derek
On Sep 10, 6:40 pm, Russell Keith-Magee wrote: > On Fri, Sep 10, 2010 at 7:47 PM, naoy.teruh wrote: > > Hello, > > > I would like to implement multicolumns primary keys in django. > ... > > Did I miss something ? > > Yes - Multicolumn primary keys aren't currently supported in Django. > It's a lo

Re: import Error

2010-09-12 Thread ravi krishna
Hi Nick, I checked dojango in the python path and its importing it without any errors. And when i run python manage,py runserver it giving 'ImportError: No module named Chat'. Can u please help by telling how to add the app in the python path. Rav! On Fri, Sep 10, 2010 at 11:32 PM, nick.l...@gmai

Re: windows xp, python 2.6, mod_wsgi, apache 8.4, MySQL 5.1 - CSS not loading.

2010-09-12 Thread Mike Dewhirst
On 13/09/2010 3:11pm, Mike Dewhirst wrote: On 12/09/2010 7:33am, Jesse wrote: Hello, I've successfully implemented mod_wsgi with Apache on Windows XP using MySQL 5.1. Everything but the CSS/html for the index page is working. Even the admin pages are working with style sheets. The following is m

Re: windows xp, python 2.6, mod_wsgi, apache 8.4, MySQL 5.1 - CSS not loading.

2010-09-12 Thread Mike Dewhirst
On 12/09/2010 7:33am, Jesse wrote: Hello, I've successfully implemented mod_wsgi with Apache on Windows XP using MySQL 5.1. Everything but the CSS/html for the index page is working. Even the admin pages are working with style sheets. The following is my code. I cannot seem to find the error

Re: user created variables

2010-09-12 Thread pixelcowboy
Of course! But what about different field types? How would you pair the variable name with the variable value for multiple types in the same class? Or would you need a separate model class for each different value type? example integers, strings, etc Sorry for the lack of information, but my appl

Re: trouble with Django install

2010-09-12 Thread nick.l...@gmail.com
oh forgot to add...to verify that Django was installed properly, start the python interpreter...then type: import django If it does not error then you're good to go. else...something went wrong. n On Sun, Sep 12, 2010 at 10:19 PM, nick.l...@gmail.com wrote: > Sophi > > This is the simplest way

Re: user created variables

2010-09-12 Thread nick.l...@gmail.com
without knowing any context of what you want...or are going to do...I would say create a similar model and run with it: class UserVariables(models.Model): variable_name = models.CharField(max_length=100) variable_value = models.TextField() THOUGH like I said, I have no idea what you're tr

Re: trouble with Django install

2010-09-12 Thread ankit rai
shortcut is a module name in django application.You might be using this in your views as from.django.shortcuts import httP*.There is no error while deploying . On Mon, Sep 13, 2010 at 8:49 AM, nick.l...@gmail.com wrote: > Sophi > > This is the simplest way to install Django: > http://docs.djangop

Re: trouble with Django install

2010-09-12 Thread nick.l...@gmail.com
Sophi This is the simplest way to install Django: http://docs.djangoproject.com/en/dev/topics/install/?from=olddocs#installing-an-official-release If you follow the instructions about installing the offical release, then you won't need to worry about doing any linking (ie the ln -s command) n

Re: No module named shortcuts

2010-09-12 Thread ankit rai
Can you simply remove and re install the django .I have faced the same problem,this works for me! On Mon, Sep 13, 2010 at 1:00 AM, jean polo wrote: > django.contrib.admin is the problem then.. > I can access the shell if I comment it.. > problem is that I have no idea about why or where to look..

inheritance of fields and default values from parent model class

2010-09-12 Thread pixelcowboy
Hi, I would like to create an inheritance relationship, similar to an abstract class, where the child class inherits all the fields from the parent class, but also gets its default values from the parent instance. So basically Im confused about the concepts, I know an abstract class would not have

user created variables

2010-09-12 Thread pixelcowboy
What would be the best way to enable a user to create arbitrary variables through the django admin? This could be either numbers, text or paths to files. Thanks for your advice! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

trouble with Django install

2010-09-12 Thread Sophi
Hello- I am trying to install Django and having problems! I have Python 2.6 and Ubuntu, also I am total Linux N00B I am using this document to help me to install Django: http://docs.djangoproject.com/en/dev/topics/install/?from=olddocs Everything seems OK until I want to check that the Python int

Re: Wiki in Django?

2010-09-12 Thread Kenneth Gonsalves
On Sat, 2010-09-11 at 22:17 +0530, Shamail Tayyab wrote: > I need a very minimal wiki, best if it runs on flat files. moinmoin is > too > heavy for what I am looking. Is there some Django thing available or > written > by someone here? bitbucket has a wiki - I do not know if it is open sourced ye

Re: Integrating User Profile with Auth

2010-09-12 Thread darren
Thanks. I will keep this in mind. On Sun, Sep 12, 2010 at 12:51 PM, Justin Myers wrote: > Another idea would be to connect to User's post-save signal. You can > set it up to check whether the User instance being saved is just being > created, and if so, you can create its UserProfile instance a

Template library account_tags not found | 'account_tags' is not a valid tag library

2010-09-12 Thread justin jools
getting this error trying to load templatetag in my account_tags template: {% load account_tags %} get this error: (detail at btootm) Template library account_tags not found | 'account_tags' is not a valid tag library tried at bash: from django.contrib.admin.templatetags import account_tags g

Re: Filter for non-True NullBooleanField

2010-09-12 Thread Christos Jonathan Hayward
Thanks, and noted for the future. I went with a regular BooleanField defaulting to False. On Sat, Sep 11, 2010 at 7:08 AM, Preston Holmes wrote: > > > On Sep 10, 2:43 pm, Christos Jonathan Hayward > wrote: > > P.S. Setting: > > > > .filter(is_invisible__in = [False, None]) > > how about: > > .e

Re: model across several databases

2010-09-12 Thread qMax
Ok. Here is my primitive implementation of 'ForeignKey' across databases. It's still not clean for me - either should i use .using im the pointed places, or django will use proper databases? Also, ModelChoiceField when used in admin views - cannot show current value somehow. class AlienKey(models.

Django Setup - Multiple projects in one domain with NGINX and Gunicorn

2010-09-12 Thread Charleno Pires
I'm trying setup very projects in one domain with NGINX + Gunicorn, but i have fail. I think in: mydomain.com/projects/project1 mydomain.com/projects/project2 mydomain.com/projects/project3 Please, anyone know what I'm talking about and have a solution? -- You received this message

Re: No module named shortcuts

2010-09-12 Thread jean polo
django.contrib.admin is the problem then.. I can access the shell if I comment it.. problem is that I have no idea about why or where to look again thanks for the help _y On Sep 12, 7:58 pm, bruno desthuilliers wrote: > Duh... > > Comment all your INSTALLED_APPS and try running "./manage.py

Re: Please add tag for Django 1.2.3 release

2010-09-12 Thread creecode
Hello all, I asked < http://code.djangoproject.com/ticket/14265#preview > and we received! :-) Thanks Russell! On Sep 11, 12:19 pm, creecode wrote: > I too find the tagged releases useful.  Thanks for all your hard work > people! Toodle-lo. creecode -- You received th

Re: No module named shortcuts

2010-09-12 Thread bruno desthuilliers
On 12 sep, 17:59, jean polo wrote: > hi > I cannot even get to the shell in my project (still same error: 'No > module named shortcuts'). Duh... Comment all your INSTALLED_APPS and try running "./manage.py shell". If it works ok, then uncomment your installed apps one by one until it breaks aga

Re: Integrating User Profile with Auth

2010-09-12 Thread Justin Myers
Another idea would be to connect to User's post-save signal. You can set it up to check whether the User instance being saved is just being created, and if so, you can create its UserProfile instance at the same time. That'd make it so all future users have profiles as soon as they're created; once

Re: django achievements

2010-09-12 Thread nick.l...@gmail.com
Sweet! On Sun, Sep 12, 2010 at 5:30 PM, Joel Klabo wrote: > that looks perfect, thanks. > > On Sep 11, 12:44 pm, "nick.l...@gmail.com" > wrote: > > Not sure if this will help ya...but the guys at Eldarion have brabeion > for > > doing badges (awards).http://github.com/eldarion/brabeion > > > >

Django 1.2 and unittest2 - does this hack work?

2010-09-12 Thread Mattias Linnap
I'm using Django 1.2.3 with Python 2.6. I would like to use the new fancy unittest asserts available in Python 2.7. These have been backported to Python 2.6 as the unittest2 module (http://www.voidspace.org.uk/python/articles/unittest2.shtml). But at the same time, I would like to use test fixtures

Re: django achievements

2010-09-12 Thread Joel Klabo
that looks perfect, thanks. On Sep 11, 12:44 pm, "nick.l...@gmail.com" wrote: > Not sure if this will help ya...but the guys at Eldarion have brabeion for > doing badges (awards).http://github.com/eldarion/brabeion > > That's all I got right now! > > n > > > > > > On Sat, Sep 11, 2010 at 12:26 PM

Re: No module named shortcuts

2010-09-12 Thread Albert Hopkins
On Sun, 2010-09-12 at 08:59 -0700, jean polo wrote: > sorry but I'm not sure to get what I'm supposed to find with this ? Something in your project is shadowing the django framework's namespace, so .e.g 1. You have created your own module or package and did a import django or

Re: can i get model field type from a model queryset in django?

2010-09-12 Thread victor
thx for your answer. On Sep 12, 8:47 pm, bruno desthuilliers wrote: > On 11 sep, 18:40, victor wrote: > > > can i get model field type from a model queryset in django? > > for example: > > a is b model's queryset > > b model has following field: > > >  - f:charfield > >  - g:foreignkey > >  - h:

Re: No module named shortcuts

2010-09-12 Thread jean polo
hi I cannot even get to the shell in my project (still same error: 'No module named shortcuts'). So I created a new project and then: $ python manage.py shell >>> import django >>> type(django) >>> django.__file__ '/usr/lib/pymodules/python2.6/django/__init__.pyc sorry but I'm not sure to get wh

Re: No module named shortcuts

2010-09-12 Thread Albert Hopkins
On Sun, 2010-09-12 at 07:28 -0700, jean polo wrote: > mmh, if I create another project and use his settings.py in the non- > working one it works.. > I can't see what's wrong with my settings file, here it is in case > someone wants to have a look at it: Then try this: $ ./manage.py shell

Re: No module named shortcuts

2010-09-12 Thread jean polo
mmh, if I create another project and use his settings.py in the non- working one it works.. I can't see what's wrong with my settings file, here it is in case someone wants to have a look at it: ### settings.py import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Yvan xxx', 'yvan@xxx

django-registration : How to display different message for invalid username/password case and non-activated account

2010-09-12 Thread failuch
Hi people, The first page of my system proposes to the customer authenticate himself or sign-in for the service. But he can forgot to activate an account and I want to show him error message proposing to look into his e-mail and a different error message when user/passw is invalid. I am novice dj

have gdata-2.0.11 installed | cant find gdata.contacts.service | error: no attribute 'GDATA_NAMESPACE'

2010-09-12 Thread justin jools
I am installing django-friends and am getting error from importer.py: (full file at: http://github.com/jtauber/django-friends/blob/master/friends/importer.py) cannot not import this, yet I have gdata-2.0.11 on my python path, with contacts.service inside import gdata.contacts.service is causing

Re: Staticstic app, ask for idea.

2010-09-12 Thread sebastien piquemal
You could run the django-cube tests ! If you don't give me the error trace, I cannot really help you ! On Sep 11, 8:10 pm, Lucian Romi wrote: > Thanks for your help. It's very clear. > I used measure_list method but it thrown and exception. > Here's how I did, > In my app's ModelAdmin I override

Re: No module named shortcuts

2010-09-12 Thread jean polo
well, this is weird, I have no other module/package named django in my project dir. I use django-1.2.1 and it worked fine until yesterday... I didn't do any changes except some views details and the same svn version (online) works fine... (~) % cd dev/myproject (~/dev/myproject) % ./manage.py shel

Re: can i get model field type from a model queryset in django?

2010-09-12 Thread bruno desthuilliers
On 11 sep, 18:40, victor wrote: > can i get model field type from a model queryset in django? > for example: > a is b model's queryset > b model has following field: > >  - f:charfield >  - g:foreignkey >  - h:manytomany > > is there any way to get field g's type from queryset a? br...@bibi ~/pla

Re: No module named shortcuts

2010-09-12 Thread bruno desthuilliers
On 12 sep, 13:01, jean polo wrote: > >   File "manage.py", line 11, in >     execute_manager(settings) >   [SNIP] >     from django.shortcuts import get_object_or_404, render_to_response > ImportError: No module named shortcuts This usually happens when you have another module/package named djan

Re: python setup.py install errors

2010-09-12 Thread Vasil Vangelovski
Is that NAS with an ARM processor? It might be caused by a bug in python 2.5: http://bugs.python.org/issue1762561 On Sat, Sep 11, 2010 at 11:26 PM, S66 wrote: > hi there, > > i tried to get the current version of django working on my NAS, but > when i run > python setup.py install > i get this

No module named shortcuts

2010-09-12 Thread jean polo
hi. after deploying my app and using svn, my local working copy just stopped working with this error: File "manage.py", line 11, in execute_manager(settings) [SNIP] from django.shortcuts import get_object_or_404, render_to_response ImportError: No module named shortcuts My local serv