I\'m attempting to launch a GeoDjango app. I\'ve installed Postgres & PostGIS using brew on Lion. I created a database using template_postgis: createdb -T template_pos
The solution for me was to run the following in the postgres terminal:
psql database_name
database_name=# CREATE EXTENSION postgis;
If you get ERROR: relation "spatial_ref_sys" already exists
, run the following before CREATE EXTENSION postgis
:
drop table spatial_ref_sys;
drop table geometry_columns;