title: Why am I having this database issue?
body: <p>I am working on a Python/Django project, and we need to use two databases. Following the documentation I added a second database like this:</p>
  
  <pre><code>DATABASE_URL = os.getenv('DATABASE_URL', 'postgres://*******:********@aws-us-***********:*****/*****')
  CURRENCIES_URL = os.getenv('CURRENCIES_URL', 'postgres://*******:********@aws-us-***********:*****/*****')
  
  DATABASES = {
      'default': dj_database_url.parse(DATABASE_URL),
      'currencies': dj_database_url.parse(CURRENCIES_URL)
  }
  </code></pre>
  
  <p>The parse() method returns the data in the format the object is expecting. </p>
  
  <p>Then, I have this code:</p>
  
  <pre><code>currencies = connection['currencies'].cursor()
  </code></pre>
  
  <p>Basically this allows me to run custom SQL code on the database, by returning its cursor and storing it in <code>currencies</code></p>
  
  <p>However when running this code I get this in the console:</p>
  
  <pre><code>url(r'^', include('btcmag.urls', namespace="btcmag")),
    File "/Users/john/.virtualenvs/btcmag/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 50, in include
      urlconf_module = import_module(urlconf_module)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
      __import__(name)
    File "/Users/john/btcmag/btcmag/urls.py", line 7, in &lt;module&gt;
      from . import views
    File "/Users/john/btcmag/btcmag/views.py", line 4, in &lt;module&gt;
      from .apis import getTrendingArticles, getTickers, getCurrency, getHistory
    File "/Users/john/btcmag/btcmag/apis.py", line 9, in &lt;module&gt;
      currencies = connection['currencies'].cursor()
  TypeError: 'DefaultConnectionProxy' object has no attribute '__getitem__'
  </code></pre>
  
  <p>Some clarification:</p>
  
  <ul>
  <li><p>When I run just <code>currencies = connection.cursor()</code> it uses the <code>default</code> database and works just fine, which tells me it's not the connection module</p></li>
  <li><p>If I switch <code>currencies</code> and <code>default</code> in the databases settings it works also fine - running <code>currencies = connection.cursor()</code> - by using the Currencies DB as default. So the DB is not the issue either.</p></li>
  </ul>
  
  <p>What could be causing the issue here?</p>