Django Creates All Model Tables In Both Databases
I made two databases in my django project, one app writes it's data to one database, second - to other. But when I make migration, all models from both apps create their tables in
Solution 1:
Unfortunately no, this is just how the migrations system currently works. There's an open issue about this that you might find helpful.
As noted in comment 6, a possible partial workaround is to specify the app when you do the migrations:
./manage.py migrate inapppurchase --database=iap
./manage.py migrate myapp --database=default
That's definitely not a robust solution, though.
Post a Comment for "Django Creates All Model Tables In Both Databases"