尝试使用geodjango安装GIS应用程序时出现安装错误? [英] Installation error while trying to install a gis application using geodjango?

查看:129
本文介绍了尝试使用geodjango安装GIS应用程序时出现安装错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

当我没有正确使用POSTGIS模板创建数据库时(与错误提示完全一样),我收到了此错误。因此,您是否正确使用空间数据库模板安装PostGIS ,您是否使用-T template_postgis创建了数据库?

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

这篇关于尝试使用geodjango安装GIS应用程序时出现安装错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆