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

前端 未结 7 523
粉色の甜心
粉色の甜心 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:27

    The above error occurs when you have django.contrib.admin among the installed applications. Run these commands in their respective order.

    **
    
    ./manage.py makemigrations 
    ./manage.py migrate auth
    ./manage.py migrate**
    

    That worked for me perfectly.

提交回复
热议问题