I followed the installation of geodjango (Windows XP) and the tutorial to perfection. I run django 1.2. When I get syncdb and run, I get the following.
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
I tried switching to "django.db.backends.postgresql_psycopg2" as an alternative, but then I get this answer:
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
When I try posgresql:
**raise ImproperlyConfigured("Error loading psycopg module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No mo
dule named psycopg**
Isn't postgis expected that I successfully downloaded and installed? why doesn't it work? I am a beginner and I try to study, so any help would be greatly appreciated.
source
share