datetime deosn't work, first part of the manual

16 views
Skip to first unread message

joy

unread,
Dec 2, 2012, 11:55:42 AM12/2/12
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 AM12/2/12
to django...@googlegroups.com
Sorry, i got it...
Reply all
Reply to author
Forward
0 new messages