No such table: main.auth_user__old

``Steps to fix:

Stopped the django webserver running, Ctrl-C
Delete the db.sqlite3
Uninstalled Django old verison
Install latest version of Django with “pip install django” or this latest version 3.1.7
Issue “python manage.py makemigrations”
Issue “python manage.py migrate”
Create a superuser with “python manage.py createsuperuser”
Issue “python manage.py runserver” (or port 8080)
Navigate to http://127.0.0.1:8000/admin/
You will successfully able to add table manually.

10 Likes