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.