2
django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version for database "geodatabase". GeoDjango requires at least PostGIS version 1.3. Was the database created from a spatial database template?

これは、このチュートリアルhttp://invisibleroads.com/tutorials/geodjango-googlemaps-build.htmlを実行したときに発生したエラーです。

4

1 に答える 1

1

POSTGIS テンプレートを適切に使用してデータベースを作成しなかったときに、このエラーが発生しました (エラーが示すとおりです)。空間データベース テンプレートを使用して PostGIS を適切にインストールし、データベースを -T template_postgis で作成しましたか?

createdb -U postgres -T template_postgis -O geouser geodatabase
于 2011-05-11T00:14:18.553 に答える