Re: Problems using mptt

2008-03-10 Thread Pete Crosier
Are you using 0.96 (you're using __str__ so I'd guess you are)? Django's ugettext was introduced in the unicode merge that occured after 0.96's release. On Mar 10, 12:18 am, Tim Adler <[EMAIL PROTECTED]> wrote: > Hey everybody, > > I'm trying to added mptt to my django project for managing a

Re: Using primary key ID in file upload location?

2008-03-10 Thread Pete Crosier
Currently, Django won't overwrite uploaded files, it'll append a "_" to the filename until it's unique. Django does let you organise files by strftime formatting - http://www.djangoproject.com/documentation/model-api/#filefield - it might be worth checking djangosnippets.org or searching in the

Re: UTF-8 encoding

2008-03-10 Thread Pete Crosier
It's worth reading the notes on the database backends, which go into detail about how to setup your database for Django / Django for your database - http://www.djangoproject.com/documentation/databases/ On Mar 10, 5:51 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am using MySQL. How

Re: upload progress bar #2070

2008-03-08 Thread Pete Crosier
All the fun of middleware can be found here - http://www.djangoproject.com/documentation/middleware/ On Mar 8, 6:38 pm, binaryj <[EMAIL PROTECTED]> wrote: > hi group, > i have patched my cvs build of django with patch #2070. the patch > works well and is great except that it throws very little

Re: MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Pete Crosier
I think you're over-estimating Django a little when it comes to serving media - check out http://www.djangoproject.com/documentation/static_files/ for details, it requires a little more work. On Mar 5, 6:19 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote: > In settings.py I have: > MEDIA_ROOT =

Re: initial value not working when used with SelectDateWidget

2008-03-05 Thread Pete Crosier
Ganesh - http://groups.google.com/group/django-users/post - try again ;D On Mar 5, 2:32 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to show the current date in the Date field. It works > 'SelectDateWidget' when I use the default widget. If I use > 'SelectDateWidget' then I always

Re: Problem with SYNCDB

2008-03-05 Thread Pete Crosier
You need to make sure MySQL is up and running, and that the database settings in your settings file are correct - I've seen this error when I've simply forgotten to start MySQL. On Mar 5, 1:25 pm, "Nicola Greco di Notsecurity.com" <[EMAIL PROTECTED]> wrote: > I'm using debian, with apache (not

Re: problems with url tag

2008-03-05 Thread Pete Crosier
More than one match for one {% url view args %} doesn't sound right, you can name your patterns to clear up any ambiguity - http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns On Mar 5, 2:30 am, msoulier <[EMAIL PROTECTED]> wrote: > So, my urlconf is > > urlpatterns =

Re: MEDIA_URL doesnt work

2008-02-22 Thread Pete Crosier
Have a look at the links below, I think you're over-estimating what MEDIA_URL does for you - http://www.djangoproject.com/documentation/static_files/ http://www.djangoproject.com/documentation/settings/#media-url On Feb 22, 7:54 pm, troeten <[EMAIL PROTECTED]> wrote: > Hi, > i have a problem

Re: Two fields foreign key of same table

2008-02-13 Thread Pete Crosier
Read the message a little closer, it tells you what to do.. each ForeignKey field needs a related_name to distinguish it from the other. On Feb 13, 10:33 am, "Sairam Krishnamurthy" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a table structure like this. > > class

Re: AssertionError on a model

2008-02-06 Thread Pete Crosier
A model can only use one field as its primary key and Distributequeue.objects.get() should only return one object. http://www.djangoproject.com/documentation/model-api/#primary-key http://www.djangoproject.com/documentation/db-api/#get-kwargs Cheers, Pete. On Feb 6, 12:11 pm, Nader <[EMAIL

Re: Links not working after svn 6915

2007-12-14 Thread Pete Crosier
I'd have a read of http://www.djangoproject.com/documentation/middleware/#django-middleware-common-commonmiddleware and http://code.djangoproject.com/changeset/6852/ - looks like it could be a change of behaviour. On Dec 14, 3:21 pm, "Matt Davies" <[EMAIL PROTECTED]> wrote: > Hello everyone > >