Thursday, September 1, 2011

Setting up a PostGIS DB

I am trying to set up a PostGIS DB in Django to track Lat/Lon of a
location, and use it with the Google Maps API. However when I try to
run 'python manage.py syncdb' after running 'createdb -T
template_postgis mydb' I get this error.

Failed to install index for reviews.Location model: function
addgeometrycolumn(unknown, unknown, integer, unknown, integer) does
not exist
LINE 1: SELECT AddGeometryColumn('reviews_location', 'geometry',
432...
^
HINT: No function matches the given name and argument types. You
might need to add explicit type casts.

Anyone have any advice or ideas?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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


Real Estate