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
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
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
3 matches
Mail list logo