Trick reset django app migration


When you have mistakes and you want to reset table with django migration, think this way

1. Delete all tables
By commented all model in your app and disable any apps below your app in settings.py

2. python manage.py makemigrations your-app
This will generate migration to remove all your app tables

3. un-comment your models and makemigrations

Cheers! 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.