I'm facing this error when setting up geodjango in a working django 1.9 app.
My app is living inside a amazon EC2 instance plus a RDS postgres instance.
The error is:
django.core.exceptions.ImproperlyConfigured: 'django.contrib.gis.db.backends.postgis' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3
What I've done:
- Install GEOS, PROJ.4 and PostGIS as described in geodjango doc.
- Install PostGIS in amazon RDS as described in amazon doc.
Modify my project settings.py to include:
- INSTALLED_APPS = (... 'django.contrib.admin', ... 'django.contrib.gis')
- GEOS_LIBRARY_PATH = '/usr/local/lib/libgeos_c.so'
- DATABASES = { ... 'ENGINE': 'django.contrib.gis.db.backends.postgis' ...}
Modify my app models.py to import models from django.contrib.gis.db, instead of django.db
Any guess what I'm missing?