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

空扰寡人 提交于 2019-12-22 12:25:03

问题


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?

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


回答1:


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


来源:https://stackoverflow.com/questions/5907672/installation-error-while-trying-to-install-a-gis-application-using-geodjango

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!