python - 'module' object has no attribute 'GeoSQLCompiler' -


i new geodjango. using django-1.4.5 , database settings,

databases = {     "default": {         "engine": "django.db.backends.postgresql_psycopg2", # add "postgresql_psycopg2", "postgresql", "mysql", "sqlite3" or "oracle".         "name": "mydb",                       # or path database file if using sqlite3.         "user": "postgres",                             # not used sqlite3.         "password": "test",                         # not used sqlite3.         "host": "localhost",                             # set empty string localhost. not used sqlite3.         "port": "",                             # set empty string default. not used sqlite3.     } } 

and got error 'module' object has no attribute 'geosqlcompiler' please solve problem.

replace:

 'engine': 'django.db.backends.postgresql_psycopg2'

with

'engine': 'django.contrib.gis.db.backends.postgis'

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -