Я новичок в geodjango. Я использую Django-1.4.5 и мои настройки базы данных,Объект 'module' не имеет атрибута 'GeoSQLCompiler'
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2", # Add "postgresql_psycopg2", "postgresql", "mysql", "sqlite3" or "oracle".
"NAME": "mydb", # Or path to database file if using sqlite3.
"USER": "postgres", # Not used with sqlite3.
"PASSWORD": "test", # Not used with sqlite3.
"HOST": "localhost", # Set to empty string for localhost. Not used with sqlite3.
"PORT": "", # Set to empty string for default. Not used with sqlite3.
}
}
И я получил ошибку 'module' object has no attribute 'GeoSQLCompiler'
Пожалуйста, решить мою проблему.
у вас есть 'django.contrib.gis' в вашем' INSTALLED_APPS'? – karthikr
yes karthikr Я добавил django.contrib.gis в мое приложение – dhana