我遵循geodjango安裝(windows XP)和教程來完善 我正在運行django 1.2 當我到達syncdb並運行時,我收到以下內容。geodjango syncdb錯誤。從geodjango教程
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured:'django.db.backends.postgis' isn
an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3
Error was: No module named postgis.base
我試圖改變爲 'django.db.backends.postgresql_psycopg2' 作爲替代 但後來我收到這樣的響應:當我嘗試posgresql
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
:
**raise ImproperlyConfigured("Error loading psycopg module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No mo
dule named psycopg**
是不是假設d是我成功下載和安裝的postgis?爲什麼它不工作?我是新的,我正在努力學習,所以任何幫助將不勝感激。
你能確保你安裝了'psycopg'? – 2010-08-25 16:22:47