Sunday, January 29, 2012

Re: help with tutorial 01

That should work. You must have some unusual setting in settings.py. Can you post time zone references from that file?

On 20 January 2012 09:03, Cyd <cyd@cydward.com> wrote:
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.


--
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.

No comments:

Post a Comment