Django-Python
我对 django、python 和 ubuntu 命令行非常陌生。我一直在电脑上安装一个应用程序,这是我的第三个。我遇到过这个错误,不知道还能去哪里查看。当我跑步时 python 管理.py 同步数据库 我收到以下错误
django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version for database "winepad". GeoDjango requires at least PostGIS version 1.3. Was the database created from a spatial database template?
任何帮助将不胜感激
谢谢
I am very new to django, python and ubuntu command line. I've been installing an application on PC's and this is my third one. Ive come across this error and am not sure where else to look. When I run
python manage.py syncdb
i receive the following error
django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version for database "winepad". GeoDjango requires at least PostGIS version 1.3. Was the database created from a spatial database template?
Any help would be greatly appreciated
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
检查您的 PostGIS 版本。它必须至少为 1.3。
Check Your PostGIS Version. it must be atleast 1.3.
您是否阅读过此角色构建文档:
http://docs。 djangoproject.com/en/dev/ref/contrib/gis/install/
?
我们需要更多地了解事物的版本以及您采取了哪些步骤来解决此错误。否则,该错误信息非常丰富。您的设置引用的数据库不得是使用 postgis 1.3+ 从空间数据库模板创建的。
Have you gone through this character-building documentation:
http://docs.djangoproject.com/en/dev/ref/contrib/gis/install/
?
We need to know more about versions of things and what steps you took to come to this error. Otherwise, the error is pretty informative. The database that your settings refer to must not have been created with postgis 1.3+ from a spatial database template.
我想知道,既然你说你是新人,你是否意识到你正在尝试安装一个具有地理要求的 Django 包,因此假设你已经启动并运行了正确的 postgres-sql 版本(这是一个有点困难的安装)本身)
您可能想从更简单的事情开始,只使用 Django 设置文件中的 sql-lite 数据库查看来查看数据库设置是什么......
I wonder since you say that you are new,, Do you realize that you are attempting to install a Django package that has geo requirements and therefore assumes that you have a correct version of postgres-sql up and running (which is a somewhat difficult install itself)
You might want to start with something simpler that just uses the sql-lite database look in the Djano settings file to see what the database setting is....