This worked: import datetime Then, use 'datetime.datetime.now()' instead of 'datetime.now()'
Thanks guys! On Jul 14, 11:57 am, Subhranath Chunder <subhran...@gmail.com> wrote: > How did u import the datetime module? > If you did: > > a> > import datetime > Then, use 'datetime.datetime.now()' instead of 'datetime.now()' > > b> > from datetime import datetime > Then 'datetime.now()' should work correctly. > > Thanks, > Subhranath Chunder. > > On Wed, Jul 14, 2010 at 9:13 PM, Chris McComas <mccomas.ch...@gmail.com>wrote: > > > > > This is my model, I'm trying to set it so that if the game is in the > > future, based on the field date, then to return True, if not return > > False. > > >http://dpaste.com/218111/ > > > I am importing datetime in my models.py but for some reason it's > > giving me nothing. I tried displaying future and nothing shows up? > > What have I done wrong? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@google > > groups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.