django 1.9: ProgrammingError: relation “users_user” does not exist

后端 未结 3 2059
忘掉有多难
忘掉有多难 2021-02-08 01:31

I am running into a ProgrammingError when doing migrate, I think it may be related to the use of django-allauth with a custom user. Here is what I do

1/ Create a fresh d

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-08 02:22

    You have to delete the migrations folder and then, you should do

    python manage.py migrate --run-syncdb
    
    python manage.py migrate --fake appname
    

提交回复
热议问题