开发者

Installation error while trying to install a gis application using geodjango?

开发者 https://www.devze.com 2023-03-03 14:21 出处:网络
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 sp开发者_St
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 sp开发者_StackOverflow社区atial database template?

This is the error I got when I followed this tutorial http://invisibleroads.com/tutorials/geodjango-googlemaps-build.html


I got this error when I didn't properly use the POSTGIS template to create my database (exactly like the error suggests). So did you properly install PostGIS with the spatial database template and did you create your db with -T template_postgis ?

createdb -U postgres -T template_postgis -O geouser geodatabase
0

精彩评论

暂无评论...
验证码 换一张
取 消