Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
datetime deosn't work, first part of the manual
16 views
Skip to first unread message
joy
unread,
Dec 2, 2012, 11:55:42 AM
12/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
NameError: global name 'datetime' is not defined
But the timezone module is imported in modules.py
should i define it somewhere else?
Joy
joy
unread,
Dec 2, 2012, 11:57:02 AM
12/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Sorry, i got it...
Reply all
Reply to author
Forward
0 new messages