[Answered ]-Django not picking up migration where managed = False

1👍

From Django documentation


Options.managed

If False, no database table creation, modification, or deletion operations will be performed for this model. This is useful if the
model represents an existing table or a database view that has been
created by some other means. This is the only difference when
managed=False. All other aspects of model handling are exactly the
same as normal. This includes

Adding an automatic primary key field to the model if you don’t
declare it.
To avoid confusion for later code readers, it’s
recommended to specify all the columns from the database table you are
modeling when using unmanaged models.

Django is also not capable to do any migrations to views, that is why they are generally left as unmanaged an used scarcely

Leave a comment