I am using geoDjango. I have installed following packages from source Gdal, proj1.4, geos3.3.5 and Postgis2.0.1. I am ubuntu user. When I run syncdb after that I am getting following error. Am I missing something? thanks
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Failed to install index for cities.City model: operator class "gist_geometry_ops" does not exist for access method "gist"
Failed to install index for cities.District model: operator class "gist_geometry_ops" does not exist for access method "gist"
Failed to install index for cities.PostalCodeCA model: operator class "gist_geometry_ops" does not exist for access method "gist"
Installed 0 object(s) from 0 fixture(s)
you need to create a postgis template and load the relevent postgis.sql
say your postgis path is /usr/share/postgresql/8.4/contrib
run this
your database then needs to then be created with the created templete template