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

前端 未结 4 758
日久生厌
日久生厌 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:13

    What version of django you are using..?

    If you are using django>=1.7 you need to run migrate

    After adding models you need to do python manage.py makemigrations then python manage.py migrate

    If your project already contain migrations you can directly run python manage.py migrate command.

    If you miss any step mentioned above please do that.

提交回复
热议问题