问题
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