Monday, October 29, 2012

psycopg2.DataError

When I run 'python manage.py validate' the following error is returned:

psycopg2.DataError: invalid value for parameter "TimeZone": "UTC"


settings.py
TIME_ZONE = 'America/Denver'
USE_TZ = True

I'm using Django 1.4.2 with Postgres 9.1/PostGIS on OSX.

To test, I went back and commented out my custom apps in INSTALLED_APPS, but the error is still there. If I set USE_TZ to False, then the error becomes:
psycopg2.DataError: invalid value for parameter "TimeZone": "America/Denver"

--
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/-/zi-34uY9WKMJ.
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