Getting 'DatabaseOperations' object has no attribute 'geo_db_type' error when doing a syncdb
- 阅读更多 关于 Getting 'DatabaseOperations' object has no attribute 'geo_db_type' error when doing a syncdb
I'm attempting to run heroku run python manage.py syncdb on my GeoDjango app on Heroku, but I get the following error: AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type' All of my research has yielded the same solution: make sure to use django.contrib.gis.db.backends.postgis as the database engine. Funny thing is that I'm already doing this (and I also have django.contrib.gis in INSTALLED_APPS ): settings.py DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': '...', 'HOST': '...', 'PORT': ..., 'USER': '...', 'PASSWORD': '...' } }