title: Connect to a different database in django shell
body: <p>How can I connect to a different database when in a Django shell?</p>
  
  <p>Something like:</p>
  
  <pre><code>python manage.py shell --database=slave
  </code></pre>
  
  <p>I tried googling all around, but couldn't find anything useful on this.</p>
  
  <p>This is what my settings looks like:</p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'db1',
          'USER': 'user',
          'PASSWORD': 'password',
          'HOST': '10.10.10.10',
          'PORT': '',
          'CONN_MAX_AGE': 1000,
      },
      'slave':{
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'db2',
          'USER': 'user',
          'PASSWORD': 'password',
          'HOST': '10.10.10.10',
          'PORT': '',
          'CONN_MAX_AGE': 1000,
      },
  }
  </code></pre>