Thursday, June 23, 2011

geodjango object has no attribute 'geo_db_type

Following the geodjango tutorial

While building the application called world, one has to run the following command to initialise the database :

python sqlall world
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'

The error is solved by editing and replacing the line
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2',
'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add 'postgresql_psycopg2',

Thanks to

No comments:

Post a Comment