Your Ad Here

Thursday, January 19, 2012

help with tutorial 01

In the tutorial here:

https://docs.djangoproject.com/en/1.3/intro/tutorial01/

I get no errors up until the p.save() at the end:

# No polls are in the system yet.
>>> Poll.objects.all()
[]

# Create a new Poll.
>>> import datetime
>>> p = Poll(question="What's up?",
pub_date=datetime.datetime.now())

# Save the object into the database. You have to call save()
explicitly.
>>> p.save()

Right here, I get this error:

RuntimeWarning: DateTimeField received a naive datetime
(2012-01-19 15:52:43.171000) while time zone support is active.

> What does it mean by naive datetime?

> Thanks for the help,
> Cyd

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment