How to fix-no such table: main.auth_user__old

后端 未结 8 1319
北恋
北恋 2021-01-23 08:02

Can someone give a detailed explanation on how to fix the ERROR: no such table: main.auth_user__old

It arises in my Django application when I am trying to a

相关标签:
8条回答
  • 2021-01-23 08:24

    I know this issue is encountered a long time back I don't want anyone to stuck on it again:

    Step1: The solution is to check the Django version if it is 2.1 then update it to 2.2 or later.

    Step2: After updating to Django==2.2 or later Delete all old migrations from the migrations folder and delete the db.sqlite3 and then run makemigrations and migrations again. It will be resolved.

    Good Luck!

    0 讨论(0)
  • 2021-01-23 08:30

    It's a compatibility issue between latest SQLite and Django. See here: Django - No such table: main.auth_user__old

    0 讨论(0)
提交回复
热议问题