Django-Python

发布于 2024-11-02 15:44:43 字数 382 浏览 4 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

亣腦蒛氧 2024-11-09 15:44:43

检查您的 PostGIS 版本。它必须至少为 1.3。

Check Your PostGIS Version. it must be atleast 1.3.

风启觞 2024-11-09 15:44:43

您是否阅读过此角色构建文档:

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.

牛↙奶布丁 2024-11-09 15:44:43

我想知道,既然你说你是新人,你是否意识到你正在尝试安装一个具有地理要求的 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....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文