Thursday, September 1, 2011

Re: Setting up a PostGIS DB

On 01-09-11 19:00, Dan H wrote:
> 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?

It seems you haven't installed the postgis database extras into your
postgres database. It depends on your OS how you have to do that.


Reinout

--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

--
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.

No comments:

Post a Comment