auth_user error with Django 1.8 and syncdb / migrate

前端 未结 8 917
独厮守ぢ
独厮守ぢ 2021-01-31 14:03

When upgrading to Django 1.8 (with zc.buildout) and running syncdb or migrate, I get this message:

django.db.utils.ProgrammingError: relation \"auth_user\" does no

8条回答
  •  遥遥无期
    2021-01-31 15:00

    If you are using heroku like I was run

    heroku run python manage.py makemigrations
    

    This will likely give you a message saying there are now changes. Ignore that then run

    heroku run python manage.py migrate
    

    this will give you some output suggesting something has been done. Finally run

    heroku run python manage.py createsuperuser
    

提交回复
热议问题