Re: django caching database object

2009-01-20 Thread Derek Payton
Malcom is absolutely right, apologies for sending untested code to the list. --Derek On Jan 20, 4:53 pm, Malcolm Tredinnick wrote: > On Tue, 2009-01-20 at 11:00 -0800, Derek Payton wrote: > > The issue is that CLIENT_CHOICES is only evaluated once, when the > > server is sta

Re: django caching database object

2009-01-20 Thread Derek Payton
The issue is that CLIENT_CHOICES is only evaluated once, when the server is started an all the code is loaded into memory. Try wrapping it all in a function, thusly: def CLIENT_CHOICES() choices = [ ('', 'Select Client'), ] clients = CustomerMaster.objects.all().order_by('cust

DjangoCon/1.0 Release Party -- Need a Ride!

2008-09-02 Thread Derek Payton
Hey guys, For those of you going to DjangoCon... My boss and I are attending DjangoCon this weekend, and we're both super excited. Thing is, however, he's unable to attend the 1.0 release party, and I'd really like to go. Since I don't drive and he's my only ride, this leaves me with the task of

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
ems to be with the way flatpages handles 500's. Not sure if it's a bug nor not. --Derek On Dec 5, 4:42 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 12/5/07, Derek Payton <[EMAIL PROTECTED]> wrote: > > > > > Apparently there was an issue with

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Apparently there was an issue with my svn. I downgraded to a previous revision (pre-6778), then back to trunk. Everything is working now, except flatpages. Here's the error from lighttpd's log: http://dpaste.com/26918/ As per the last line in the log, I created a (blank) 404.html in my templates

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Chris, [EMAIL PROTECTED]:~/django-trunk$ svn update At revision 6897. Any ideas? Thank you, --Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Hello, I was recently charged with installing a new development server at work, and I'm having some trouble getting Django to work as FastCGI under Lighttpd. The new server is setup identical to the old server, except for some hardware upgrades and we moved from Ubuntu Dapper to Ubuntu Gutsy. Li

Re: Plz, I am just new to Python...

2007-10-04 Thread Derek Payton
> > I tried downloading Django and installing it on my windows looks very > > difficult. Plsease can anyone help me on how to install Django and how > > to go about starting web development in Phyton? I think your best bet would be to follow John's advice: > I'm not sure of the details for doing