I\'m attempting to run heroku run python manage.py syncdb
on my GeoDjango app on Heroku, but I get the following error:
AttributeError: \'Databa
This post is old but I just wanted to share my answer to this problem. I'm using the Dj Database package, and I didn't know that the connection URL is different when using PostGIS. The connection string for PostGIS is postgis://USER:PASSWORD@HOST:PORT/NAME
Hope this helps someone.
I was having the same problem and I had to change:
'ENGINE': 'django.db.backends.postgresql_psycopg2',
to:
'ENGINE': 'django.contrib.gis.db.backends.postgis',
for me helped
1) add 'django.contrib.gis',
to INSTALLED_APPS
2) change from
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
to
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.mysql',