auth_user error with Django 1.8 and syncdb / migrate

前端 未结 8 920
独厮守ぢ
独厮守ぢ 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 14:42

    I've migrated an old Django 1.6 project to Django 1.8 and previously we've used syncdb to migrate the database and we did not have initial migration steps for all apps in our project. With Django 1.8, you'll need a working database migrations. Running

    manage.py makemigrations 
    

    for all apps in our project fixed our problems.

提交回复
热议问题