Sometimes, we want to fix OperationalError No Such Table with Python Django.
In this article, we’ll look at how to fix OperationalError No Such Table with Python Django.
How to fix OperationalError No Such Table with Python Django?
To fix OperationalError No Such Table with Python Django, we run the migrations to add the missing table.
We run
python manage.py migrate --run-syncdb
to create the table without migrations with --run-syncdb
.
We can also make and run migrations with
python manage.py makemigrations app
python manage.py migrate app
Conclusion
To fix OperationalError No Such Table with Python Django, we run the migrations to add the missing table.