Getting 'DatabaseOperations' object has no attribute 'geo_db_type' error when doing a syncdb

前端 未结 9 1945
有刺的猬
有刺的猬 2020-12-01 08:43

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

9条回答
  •  自闭症患者
    2020-12-01 09:42

    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',
    

提交回复
热议问题