#12591: django.contrib.gis.utils.srs is out of date
---------------------------------+------------------------------------------
Reporter: yourcelf | Owner: nobody
Status: new | Milestone:
Component: GIS | Version: SVN
Keywords: srs add_postgis_srs | Stage: Unreviewed
Has_patch: 0 |
---------------------------------+------------------------------------------
`django.contrib.gis.utils.srs.add_postgis_srs` fails with the following
error:
{{{
ImportError Traceback (most recent call
last)
/usr/local/lib/python2.6/dist-packages/django/contrib/gis/utils/srs.pyc in
add_postgis_srs(srs, auth_name, auth_srid, ref_sys_name)
22 determined by GDAL.
23 """
---> 24 from django.contrib.gis.db.backend import SpatialBackend
25 from django.contrib.gis.models import SpatialRefSys
26 from django.contrib.gis.gdal import SpatialReference
ImportError: No module named backend
}}}
This is because the `django.contrib.gis.db.backend` module no longer
exists (it has been renamed "`backends`"), and the `SpatialBackend` class
is no longer defined.
Thus the following instructions in geodjango documentation fail:
http://geodjango.org/docs/install.html#add-google-projection-to-spatial-
ref-sys-table
--
Ticket URL: <http://code.djangoproject.com/ticket/12591>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.