Django: I get a [relation “auth_group” does not exist] error after syncdb

前端 未结 7 536
粉色の甜心
粉色の甜心 2021-01-04 22:33

I started a new Django 1.8 project and realized that I missed something (i had done the initial migrations). I dropped the database (postgreSQL) and deleted migration<

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-04 23:10

    It can be either:

    • one of the pip dependencies from requirements.txt was using South

      had this error when running tests which do migration in Django 1.8. Found the lib with issue by running tests in verbose mode. Consider upgrading the library to newer version.

    manage.py test -v 3

    • one of the /migrations folder might still has old South migrations files. It can be because others are still adding migrations when you are trying to upgrade Django. Use the following to make sure that the expected migrations files are present in each app.

    manage.py showmigrations

提交回复
热议问题