Re: Evaluation of urls.py in mod_python

2007-01-19 Thread Jyrki Pulliainen
On 1/11/07, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > If my understanding is correct, when you use this method: > > > choices = { > > 'queryset': Poll.objects.filter(opening_date__lte=datetime.now(), > > closing_date__gte=datetime.now()) > > } > > The value of datetime.now() is evaluated

Re: Evaluation of urls.py in mod_python

2007-01-11 Thread Waylan Limberg
If my understanding is correct, when you use this method: > choices = { > 'queryset': Poll.objects.filter(opening_date__lte=datetime.now(), > closing_date__gte=datetime.now()) > } The value of datetime.now() is evaluated at compilation time when apache/mod_python is started (or at least

Evaluation of urls.py in mod_python

2007-01-11 Thread Jyrki Pulliainen
Hi, after running in some rather strange problems I got curious about the way Django and/or mod_python evaluates urls.py. Is there a difference if I use following code: now = datetime.now() choices = { 'queryset': Poll.objects.filter(opening_date__lte=now, closing_date__gte=now) } Or if