Django error 'no such table' adding 'Comedy' genre (Video 12.9 Complete Python Mastery course)

Solution: upgrade to latest Django version (at least 3.1.2)
Steps to fix:
I stopped the django webserver running, Ctrl-C
I kept my vidly app project as is according to Chapter 12.1-12.9.
I deleted the db.sqlite3
I uninstalled Django 2.1
I installed latest version of Django with “pip install django” which installed version 3.1.2
Issued “python manage.py makemigrations”
Issued “python manage.py migrate”
Created a superuser with “python manage.py createsuperuser”
Issued “python manage.py runserver”
Navigated to http://127.0.0.1:8000/admin/
I was successfully able to add two genres manually.

The Django version 2.1 is probably incompatible with the current version of SQLite.
Mosh, please update the instructions to Complete Python Mastery Chapter 12 accordingly. I teach a university class and have all my students purchase your course. Great course, needs some updates please.

9 Likes