Re: Multiple Database Simple Example

2010-05-14 Thread Jani Monoses
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

inner join operation on legacy tables?

2010-04-06 Thread Jani Monoses
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