Django - how to specify a database for a model?
Is there a way to specify that a model (or app, even) should only ever use one particular database? I am working with a legacy database that I don't want to change. I have two databases - the 'default' is an sqlite one that could be used for admin etc, and the legacy one. I used inspectdb to create a model for (part of) the legacy database, and it has managed = False . But is there a way to specify in the model itself that it only applies to a particular database? I see that you can specify using=databasename in some query sets etc but this is no good for things like Databrowse (and possibly