首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试使用geodjango安装gis应用程序时出现安装错误?

尝试使用geodjango安装gis应用程序时出现安装错误?
EN

Stack Overflow用户
提问于 2011-05-06 14:36:02
回答 1查看 1.6K关注 0票数 2
代码语言:javascript
复制
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时得到的错误

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-05-11 08:14:19

当我没有正确使用POSTGIS模板来创建我的数据库时(正如错误所暗示的那样),我得到了这个错误。那么,您是否正确地使用install PostGIS with the spatial database template,以及您是否使用-T template_postgis创建了数据库?

代码语言:javascript
复制
createdb -U postgres -T template_postgis -O geouser geodatabase
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5907672

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档