Re: advice location of site for production and devel

2006-04-04 Thread Kenneth Gonsalves
On Tuesday 04 Apr 2006 5:47 pm, Luis P. Mendes wrote: > I thought of having a development site under my /home account and > it is running fine with the django pre-built runserver command. keep it there and configure apache/modpython to access it > > But, I'd like to copy the project, from time

Re: ImageField upload_to

2006-04-04 Thread Ian Clelland
On 4/4/06, timster <[EMAIL PROTECTED]> wrote: > What I would like to do is store the image in a subfolder corresponding > to the gallery_id. If "Subaru" is gallery_id 1 and "Audi" is gallery_id > 2, I would want it to look like this: > > gallery/1/subaru1.jpg > gallery/2/audi1.jpg > > Is this

Re: Look at this! Perhaps a bug or a mistake

2006-04-04 Thread Douglas Campos
Confirmed: Works on postgresql... I will switch to mr very soon Thanx for allOn 4/3/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: On Mon, 2006-04-03 at 16:15 -0500, James Bennett wrote:> On 4/3/06, Douglas Campos <[EMAIL PROTECTED]> wrote:> > My environment> > Django 0.91 > > DB: sqlite3>>

ImageField upload_to

2006-04-04 Thread timster
I'm trying to create a simple image gallery. Here's what my models look like. It's very simple, a gallery can have one or more images. class Gallery(meta.Model): name = meta.CharField(maxlength=50) class Image(meta.Model): gallery = meta.ForeignKey(Gallery)] image =

Re: 0.91 vs SVN vs m-r

2006-04-04 Thread Todd O'Bryan
And maybe a link to the M-R docs, in whatever state they're in.ToddOn Apr 4, 2006, at 2:43 PM, Michael wrote:Thanks All!Will stick to m-r.It would be a good idea to put link to m-r on download page ondjangoproject website, so more people will get an idea about m-r.I fould it only in this group. On

Re: 0.91 vs SVN vs m-r

2006-04-04 Thread Michael
Thanks All!Will stick to m-r.It would be a good idea to put link to m-r on download page ondjangoproject website, so more people will get an idea about m-r.I fould it only in this group. On 4/4/06, tonemcd <[EMAIL PROTECTED]> wrote: This is another +1 for MR.It is a 'moving target', but it's not

Re: magic-removal - count with a condition

2006-04-04 Thread Istvan
great, thanks for the tip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: django-admin init won't

2006-04-04 Thread Waylan Limberg
Once you create the project (as you did successfully with 'django-admin.py startproject myproject') move into that projects directory (cd myproject) and use manage.py in place of django-admin.py. manage.py eliminates the need for setting DJANGO_SETTINGS_MODULE (because manage.py and your settings

Re: magic-removal - count with a condition

2006-04-04 Thread Max Battcher
Istvan wrote: > In Django 0.91 the > > foos.get_count( complex=condition ) > > was a valid construct. The magic removal branch raises an exception: > "count() takes exactly 1 argument (2 given)" when doing a : > > foo.objects.count( condition ) > > Is that intended? What would be a

magic-removal - count with a condition

2006-04-04 Thread Istvan
In Django 0.91 the foos.get_count( complex=condition ) was a valid construct. The magic removal branch raises an exception: "count() takes exactly 1 argument (2 given)" when doing a : foo.objects.count( condition ) Is that intended? What would be a workaround? i.

django-admin init won't

2006-04-04 Thread Frank Miles
Newbie problem ... While django-admin.py startproject myproject worked, other django-admin actions (e.g. init -- for setting up user authentication) don't. I tried setting DJANGO_SETTINGS_MODULE using both '/' and dotted directory notation, and using long and short paths to the settings file,

Re: Relationship with self with relationship data in app.py

2006-04-04 Thread Grimboy
On 04/04/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > Firstly: You can forward reference a model by using its name as a string ( > e.g., ForeignKey("foo") works, in the same way that ForeignKey("self") > works). However, IIRC, this only works with ForeignKeys in 0.91. In >

Re: Loading Data Custom Manipulator

2006-04-04 Thread Michael Radziej
[EMAIL PROTECTED] schrieb: > I used the manipulator.py script on the wiki to generate it then made > the changes I needed. Ouch. I can't give much of advice about this. Perhaps your manipulator class should derive from yourModels.Model.ChangeManipulator and it starts to work. Worth a try.

Re: Loading Data Custom Manipulator

2006-04-04 Thread [EMAIL PROTECTED]
I used the manipulator.py script on the wiki to generate it then made the changes I needed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: advice location of site for production and devel

2006-04-04 Thread Grimboy
Are you following http://www.djangoproject.com/documentation/modpython/? On 04/04/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm building my first dynamic web site using Django. mod_python is > installed and runs well. I tried

Re: Loading Data Custom Manipulator

2006-04-04 Thread Michael Radziej
[EMAIL PROTECTED] schrieb: > It appears that I need to have a custom flatten_data() that will Have you derived it from the automatically (in the model) provided manipulator? Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Loading Data Custom Manipulator

2006-04-04 Thread [EMAIL PROTECTED]
Hi, I currently have a custom manipulator that I wish to use for both editing and creating new objects. I can create objects using this manipulator, but am currently incapable of editing an object. I have tried searching through the msg list and the documentation to no luck. It appears that I

advice location of site for production and devel

2006-04-04 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm building my first dynamic web site using Django. mod_python is installed and runs well. I tried the example supplied at its docs. I thought of having a development site under my /home account and it is running fine with the django

Re: Relationship with self with relationship data in app.py

2006-04-04 Thread tonemcd
I wish I'd known about the forward reference method a bit earlier, would have saved a lot of hair-pulling. It seems that most of my hiccups with django seem to be related to data models and accessing that data using the ORM (I'm a Zope guy, and you don't do it that way there...) Cheers, Tone

Re: How do I handel multiple foriegn keys in single model

2006-04-04 Thread Kenneth Gonsalves
On Tuesday 04 Apr 2006 12:38 pm, Mir Nazim wrote: > person = meta.ForeignKey(Person) make this a ManyToMany field -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க! --~--~-~--~~~---~--~~ You received this

Re: 0.91 vs SVN vs m-r

2006-04-04 Thread Michael Radziej
Hi Michael, I found myself in the same position a month ago. My project will grow continually for a long time, and there's no near deadline, so I chose the magic-removal branch, and I haven't regretted it. Lots of good ideas went in there. Though, if you need to go productive within two