title: Django - how to specify a database for a model?
body: <p>Is there a way to specify that a model (or app, even) should only ever use one particular database?</p>
  
  <p>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  <code>managed = False</code>. But is there a way to specify in the model itself that it only applies to a particular database?</p>
  
  <p>I see that you can <a href="http://docs.djangoproject.com/en/dev/topics/db/multi-db/#manually-selecting-a-database" rel="noreferrer">specify <code>using=databasename</code></a> in some query sets etc but this is no good for things like <a href="http://docs.djangoproject.com/en/dev/ref/contrib/databrowse/?from=olddocs" rel="noreferrer">Databrowse</a> (and possibly also generic views?). It might be a short-coming of Databrowse that you can't specify a database, but it just seems like the right place to specify it is the model...</p>
  
  <p>Then I thought maybe the answer is to write a custom <a href="http://docs.djangoproject.com/en/dev/topics/db/managers/" rel="noreferrer">model manager</a> that only refers to my legacy database - but the docs don't mention anything like that.</p>
  
  <p>Do I just have a different mental model of how multiple databases might be used, to the Django world?</p>