if model._meta.app_label == 'myapp' and model._meta.object_name ==
'ModelInDatabase2Name':
That is - instead of just checking the app, check the app and the
model name. Install the router, and any query involving
ModelInDatabase2Name will be directed to the 'other' database.
It would be help
Hello,
what is the most straightforward way of making an implicit joining of
two tables in the Django development version?
The tables are created by another application and are only read in
Django, and while they have a field that they can be joined on (a
string) that is not explicit in the
2 matches
Mail list logo