“no such table” error on Heroku after django syncdb passed

前端 未结 4 694
日久生厌
日久生厌 2021-02-04 13:31

I\'m trying to deploy my Django application to Heroku. The migrations are in my local Git. When I try:

git push heroku master
heroku run python manage.py syncdb
         


        
4条回答
  •  清歌不尽
    2021-02-04 14:23

    pip install django-heroku

    Add import django_heroku at top of file settings.py

    Place django_heroku.settings(locals()) at the very bottom of settings.py

    It will automatically configure your db. You can learn more on their website

提交回复
热议问题