【发布时间】:2011-06-02 11:26:43
【问题描述】:
我一直在使用 django 和 mysql 开发应用程序,现在正在尝试从这里开始学习教程
http://docs.djangoproject.com/en/1.2/ref/contrib/gis/tutorial/
但在我运行 syncdb 时它失败了,出现以下错误
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
当我阅读时,它说如果将后端更改为使用 postGIS 可以解决这个问题。有没有办法继续使用 mysql 作为我的后端并且能够使用 geodjango?如果没有,是否可以在同一个项目中使用两者?
问候,
【问题讨论】:
-
GeoDjango installation docs 详细介绍了使用各种数据库后端需要哪些库。