Alfredo Di Napoli
unread,Jun 14, 2009, 1:13:53 PM6/14/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to geodjango
Hi,
I have a trouble with the last step in the documentation "post-
installation" section:
When I try:
add_postgis_srs(900913)
I obtain:
/Library/Python/2.5/site-packages/django/contrib/gis/utils/srs.pyc in
add_postgis_srs(srs)
13 probably be changed.
14 """
---> 15 from django.contrib.gis.models import SpatialRefSys
16 from django.contrib.gis.gdal import SpatialReference
17
ImportError: cannot import name SpatialRefSys
I'm on mac os, I've installed gdal, geos and postgis through the king
chaos binary.
I have Django :
In [13]: print VERSION
(1, 0, 2, 'final', 0)
I've looked in gis/models.py but I haven't found any SpatialRefSys
class!!
Can you help me?
Bye :)
Alfredo