Re: Time zone support enabled in Django 1.4, yet "Django does not support timezone-aware times"
Le mardi 22 mai 2012 02:57:05 UTC+2, Arthur a écrit :
I recently upgraded one of my machines to Django 1.4 to patch a bug related to the use of PostGIS 9.1. I read the documentation on the new support for time zones and added USE_TZ=True to my settings.py file. Nonetheless, when I attempt to load data into my PostGIS database in one of the following ways, I receive a ValueError: Django does not support timezone-aware times. The full traceback is posted at the end.
Hi Arthur,
The error message is about "timezone-aware times", not "timezone-aware datetimes". Your code must be creating a timezone-aware time object somewhere. This is quite a pathological type and it isn't supported by Django.
This limitation is briefly mentioned at the bottom of this section: https://docs.djangoproject.com/en/dev/topics/i18n/timezones/#naive-and-aware-datetime-objects
Sorry for the late answer,
--
Aymeric.
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0bzgv4H2WsUJ.
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
Subscribe to Post Comments [Atom]
<< Home