【问题标题】:Installation error while trying to install a gis application using geodjango?尝试使用 geodjango 安装 gis 应用程序时出现安装错误?
【发布时间】:2011-05-06 06:36:01
【问题描述】:
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

【问题讨论】:

    标签: postgresql geodjango


    【解决方案1】:

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

    createdb -U postgres -T template_postgis -O geouser geodatabase
    

    【讨论】:

    • 我也有同样的问题。我没有按照您提到的链接中的步骤进行操作。我跟着这个:postgis.refractions.net/docs/ch02.html#id2619431。我基本上将其应用于现有数据库。您对我如何撤消所做的更改有任何建议,以便我可以应用您建议的更改?我可以删除模型中的 Geo 字段并重建它。谢谢。
    猜你喜欢
    • 1970-01-01
    • 2018-12-16
    • 1970-01-01
    • 2018-02-24
    • 1970-01-01
    • 1970-01-01
    • 2015-08-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多