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
first of all backup your data. (copy your db file).
delete sqlite.db and also the migration folder.
then, run these commands:
./manage.py makemigrations APP_NAME
./manage.py migrate APP_NAME
after deleting the DB file and migration folder make sure that write the application name after the migration commands.