South + Django 1.4 Database error

前端 未结 3 1902
北荒
北荒 2021-02-03 23:44

I have just installed my Django project on a new system, and installed Django 1.4. However when I try to run manage.py runserver or manage.py syncdb I

3条回答
  •  无人及你
    2021-02-04 00:18

    For those using Heroku, which is my case. I found this problem too, I have the default database set, as they point out in the heroku guides:

    DATABASES['default'] =  dj_database_url.config()
    

    However, the ketError 'default' error still appears. This is due to there is no database provisioned, and thus dj_database_url cannot find it and raised that confusing error.

    To solve it just provision the database and promote it as explained in heroku postgresql

    heroku addons:add heroku-postgresql:dev
    heroku pg:promote HEROKU_POSTGRESQL_BLUE
    

提交回复
热议问题