[Django]-Django migration dependency order

-1👍

You need to reset the database as well.

When you created new migrations without resetting the database, the sync between your database and migrations was lost.

So when you try to migrate the new migrations, Django will find it inconsistent and fail.

It is generally not a good idea to clear all migrations and generate new migrations for the same reason.

Imagine this happening in production.

Leave a comment