On Feb 10, 2008 5:59 AM, Darthmahon <[EMAIL PROTECTED]> wrote:
> Event.objects.filter(date__exact=datetime.now())
>
> Simple enough, but it throws up this error:
>
> AttributeError at /events/today/
> 'module' object has no attribute 'now'

You want to read the documentation for Python's datetime module:

http://docs.python.org/dev/library/datetime.html


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to