When I run python manage.py migrate on my Django project, I get the following error:
Traceback (most recent call last):
File \"manage.py\", line
Your django_migrations table in your database is the cause of inconsistency and deleting all the migrations just from local path won't work.
You have to truncate the django_migrations table from your database and then try applying the migrations again. It should work but if it does not then run makemigrations again and then migrate.
Note: don't forget to take a backup of your data.