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

前端 未结 9 1951
有刺的猬
有刺的猬 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:38

    I forgot to comment out the db settings further down in settings.py:

    # Update database configuration with $DATABASE_URL.
    #db_from_env = dj_database_url.config(conn_max_age=500)
    #DATABASES['default'].update(db_from_env)
    

    These lines were overriding the settings that I had added above

提交回复
热议问题