Have you ran:

psql -d yourdatabase -f postgis.sql

After you do this you should see 1 or 2 tables in your Postgres
database as well as a slew of sql functions. Make sure you've done
this and verify it.

-Jeff

On Thu, Sep 1, 2011 at 2:18 PM, Reinout van Rees <[email protected]> wrote:
>
> 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/
> [email protected]             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 [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-users?hl=en.
>

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

Reply via email to