Django Makemigrations and migrate not working after app rename

After renaming an application, Will you still have problems with migrations?
Yes, but you can remove it and do a fake migration.




Remove all migrations files

find . -path "**/migrations/*.py" -not -name "__init_.py" -not -name "case_insensitive.py" -delete && find . -path "**/migrations/*.pyc" -delete

python manage.py makemigrations
python manage.py migrate --fake




Now everything seems to be working, we may still run into problems.

Comments