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.
no such table: main.auth_user__old
got this error when following the course of mosh. I referred to the answers of the previous people who have got this so I installed the new version of Django and it still didn’t work. pls give me a hand!! Im stuck…
Thanks a lot,
this totally worked for me. I installed the old and reinstalled the new version first and then deleted db.sqlite3, but the rest worked just fine. Thank you!
Also had this problem just now in the course. For me it took 10 minutes to copy the code to a new project with the latest version of Django in it. Simple solution, didn’t need to delete anything.