In my django application (django 1.8), I use two databases, one " default ", which is MySQL, and the other, which is a read-only schema. I have two models that access this database, and I would like to exclude these two models permanently from data and schema migration:
makemigrations should never detect any changes and create migrations for themmigrate should never complain about the lack of migration for this application.
So far I have tried different things, all without success:
- used the option
managed=False Meta on both models allow_migrate method is allow_migrate for my router, which returns False for both models
Does anyone have an example of how this scenario can be achieved? Thank you for your help!
python django django-models django-migrations
thekorn
source share