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 回答