Djangosaur
GeoDjango with Django 1.2

I’ve been struggling with trying to use geodjango with django 1.2 when all you need to do is update your database settings.

If you are encountering errors like:

AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
AttributeError: 'module' object has no attribute 'GeoSQLCompiler'

Set your DATABASE_ENGINE correctly:

'ENGINE': 'django.contrib.gis.db.backends.postgis',

Error while doing syncdb with a GIS app and django 1.2

  1. djangosaur posted this