# Postgis 2.0 Template createdb -U postgres postgis_2 createlang -U postgres plpgsql postgis_2 psql -U postgres -d postgis_2 -f /usr/share/postgresql/8.4/contrib/postgis-2.0/postgis.sql psql -U postgres -d postgis_2 -f /usr/share/postgresql/8.4/contrib/postgis-2.0/spatial_ref_sys.sql psql -U postgres -d postgis_2 -f /usr/share/postgresql/8.4/contrib/postgis-2.0/legacy.sql createdb -U postgres -T postgis_2 newdb ./manage.py syncdb # Output: Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_user_permissions Creating table auth_user_groups Creating table auth_user Creating table django_content_type Creating table django_session Creating table django_site Creating table django_admin_log [... a lot of tables ...] Creating table tv_myvdr You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (leave blank to use 'ckarrie'): E-mail address: ******* Password: Password (again): Superuser created successfully. Installing custom SQL ... Installing indexes ... Failed to install index for bzs_base.Parcel model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for bzs_base.Bzs model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for bzs_analyze.IEP model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for bzs_analyze.UndevPotential model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for arp_schwachstellen.SchwPoint model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for arp_schwachstellen.SchwPolygon model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for arp_schwachstellen.SchwLine model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Failed to install index for arp_schwachstellen.ExifData model: FEHLER: Operatorklasse »gist_geometry_ops« existiert nicht für Zugriffsmethode »gist« Installed 46 object(s) (of 135) from 3 fixture(s)