Django error in Heroku: “Please supply the ENGINE value”

前端 未结 6 760
广开言路
广开言路 2021-01-04 20:14

I read and apply \"Getting started with Django on Heroku\" tutorial but ran into problem while syncing db:

raise ImproperlyConfigured(\"settings.DATABASES is         


        
6条回答
  •  不知归路
    2021-01-04 20:46

    After trying all the answers here and verifying DATABASE_URL exists, nothing worked.

    I added the second line and it worked

    DATABASES['default'] = dj_database_url.config() <--- heroko docs says this is enough
    DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2' <---- add this
    

提交回复
热议问题