[Solved] Django Error: – no such table: main.auth_user__old

Django reports an error no such table: main auth_user__old


An error is reported when adding an article in the admin background


Django 2.0, I checked it. The reason for the error is that Django version is low and SQLite3 database is compatible



Upgrade Django to 2.1.0 five

pip install django==2.1. 5 

Just enter the command directly, and version 2.0 will be uninstalled automatically.



Delete migrations folder


Delete SQLite database



Migrate the default app first

python manage.py migrate

Then migrate your own app myblos

python manage.py makemigrations myblogs
python manage.py migrate myblogs



Re create administrator account and password

Just go back in and add the article

Similar Posts: