This worked:

import datetime
Then, use 'datetime.datetime.now()' instead of 'datetime.now()'

Thanks guys!

On Jul 14, 11:57 am, Subhranath Chunder <[email protected]> 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 <[email protected]>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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<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 [email protected].
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