Re: django in a production environment

2005-09-13 Thread Adrian Holovaty
On 9/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am getting ready to deploy my first real production django web site > for a customer and I was wondering what people had to say about > mod_python vs fcgi. I have the impression that using mod_python is the > prefered way. Is this beca

Ordering by foreign key results in FieldDoesNotExist-Error

2005-09-13 Thread Andreas
I'm trying to order a class by its parent, but apparently I'm doing something wrong. The code I use: class ParentClass(meta.Model): somevar= meta.CharField(maxlength=100) def __repr__(self): return self.somevar class META: admin = meta.Admin() ord

Re: django in a production environment

2005-09-13 Thread Ksenia Marasanova
2005/9/13, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I am getting ready to deploy my first real production django web site > for a customer and I was wondering what people had to say about > mod_python vs fcgi. I have the impression that using mod_python is the > prefered way. Is this because

Re: svn access to django_website

2005-09-13 Thread Swaroop C H
On 12-Sep-05, at 6:45 PM, tonemcd wrote: % svn co http://code.djangoproject.com/svn/djangoproject.com/django_website/ django_website/ I'm not massively familiar with svn, but it looks like the django_website is not downloadable. You've appended an extra "django_website" at the end. This c

Re: django in a production environment

2005-09-13 Thread Jason F. McBrayer
On Mon, 2005-09-12 at 21:10 -0500, Adrian Holovaty wrote: > We've used Django with mod_python for the past couple of years in a > production setting, so that's the most "proven" server arrangement. I > personally haven't used it with fcgi -- just haven't had the chance -- > so I'm not sure how fc

multiple object creation

2005-09-13 Thread [EMAIL PROTECTED]
Hi I'm looking for hints on the best way to attack the following problem. I have a model as follows Question(meta.Model): fields = ( meta.CharField('question', maxlength=250), meta.CharField('phrasing', maxlength=50, choices=QUESTION_PHRASING), ) where I insert

Re: django in a production environment

2005-09-13 Thread Ksenia Marasanova
2005/9/13, Jason F. McBrayer <[EMAIL PROTECTED]>: > > On Mon, 2005-09-12 at 21:10 -0500, Adrian Holovaty wrote: > > > We've used Django with mod_python for the past couple of years in a > > production setting, so that's the most "proven" server arrangement. I > > personally haven't used it with

Re: FileUploadField in an AddManipulator

2005-09-13 Thread Brant Harris
D'oh! Thanks

Re: Packaging django apps

2005-09-13 Thread Jacob Kaplan-Moss
On Sep 12, 2005, at 9:07 PM, [EMAIL PROTECTED] wrote: What if we, the community, created our own site. djangoapps.com or something. It would allow people to upload there own django apps. People could rate and comment on the apps posted there. And it would of course be written using django.

Re: Packaging django apps

2005-09-13 Thread Bryan L. Fordham
> - We need to fix on a good structure for app packages. As a few > people have mentioned, the one that django-admin startapp creates may > or may not be good in the long term. Personally, I think it would be > cool to load apps from ZIP files (like JARs) so that an app is a > single pac

Re: Ordering by foreign key results in FieldDoesNotExist-Error

2005-09-13 Thread Jacob Kaplan-Moss
Hey Andreas -- I actually ran into this same problem myself today. It appears to be a bug in the admin changelist view; until I get a chance to actually track it down you can work around it by adding a "ordering" option to your META.admin:: class FirstChild(meta.Model): ...

Re: Ordering by foreign key results in FieldDoesNotExist-Error

2005-09-13 Thread Andreas
Hi Jacob, thanks, it's good to know that I'm not going to find the bug in my code. While trying different things, I too found out that adding the "ordering"-option made the listview work again. The first thing I tried was adding ordering = ['theparent']: class FirstChild(meta.Model):

app repository

2005-09-13 Thread Bryan L. Fordham
So I'm wasting some time before my next class hacking on this 8) Thought I'd get some ideas before I get too far in The model is something like: App: name description maintainer version min django version max django version Maintainer: name

helper methods not being created for ManyToManyFields

2005-09-13 Thread Alberto Valverde
Hi, I'm having some trouble with these models: class Section(GenericDoc): #GenericDoc is a subclass of meta.Model, no keys, just plain char and datefields parent = meta.ForeignKey('self', blank=True, null=True, related_name='child) image = meta.ForeignKey(Image)