In my django application (django 1.8) I'm using two databases, one 'default
' which is MySQL, and another one which is a schemaless, read-only database.
I've two models which are accessing this database, and I'd like to exclude these two models permanently from data and schema migrations:
makemigrations
should never detect any changes, and create migrations for themmigrate
should never complain about missing migrations for that app
So far, I've tried different things, all without any success:
- used the
managed=False
Meta option on both Models - added a
allow_migrate
method to my router which returnsFalse
for both models
Does anyone have an example of how this scenario can be achieved? Thanks for your help!