gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 12:22:46 27 4
gpt4 key购买 nike

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 模板创建我的数据库时,我得到了这个错误(与错误提示的完全一样)。那么你做对了吗install PostGIS with the spatial database template您是否使用 -T template_postgis 创建了数据库?

createdb -U postgres -T template_postgis -O geouser geodatabase

关于postgresql - 尝试使用 geodjango 安装 gis 应用程序时出现安装错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5907672/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com