May 102016

If you read the documentation closely enough, of course all the information is there. Getting the order of operations right, however, can cause the odd issue.

Developing Django apps means applying migrations, and those don’t always do what’s expected. In that case, you can roll back to the n-1 migration by using ./ migrate [app_label] {n-1_migration_label}, then delete the nth migration, then edit the to try again.

To clean up the database from some third-party app you decide you don’t want after all, you use ./ migrate [app_label] zero to get rid of the migrations from that app. You have to run this before deleting the app from your file.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>