#11488: ValueError: too many values to unpack when POSTGIS_VERSION in settings -----------------------+---------------------------------------------------- Reporter: anonymous | Owner: nobody Status: new | Milestone: 1.1 Component: GIS | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------+---------------------------------------------------- On syncdb with contrib.gis installed and POSTGIS_VERSION in settings, i get a `ValueError: too many values to unpack`
{{{ File "C:\Python25\lib\site- packages\django\contrib\gis\db\backend\postgis\query.py", line 28, in <module> POSTGIS_VERSION, MAJOR_VERSION, MINOR_VERSION1, MINOR_VERSION2 = version_tuple }}} in settings: {{{ POSTGIS_VERSION='1.3.6' }}} When i remove that setting, syncdb works. It appears in http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/db/backend/postgis/query.py that when POSTGIS_VERSION is not in the settings, postgis_version_tuple() returns a tuple in this format: ('1.3.6',1,3,6) whereas the GIS docs (http://geodjango.org/docs/testing.html#postgis-version) say to set POSTGIS_VERSION in the format i used. When POSTGIS_VERSION is returned, the tuple only has one element, not the four required. i noted that the code says "This setting is intentionally undocumented" so i don't know what course of action is appropriate. -- Ticket URL: <http://code.djangoproject.com/ticket/11488> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---