title: postgresql django not sending password
body: <p>I am getting the error <code>OperationalError: fe_sendauth: no password supplied</code> on my production server but I cannot see why...</p>
  
  <p>settings.py</p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'dbname',
          'USER': 'dbuser',
          'PASSWORD': PROD_DB_PASSWORD,
          'HOST': 'localhost',
          'PORT': '5432',
          }
      }
  </code></pre>
  
  <p>pg_hba.conf:</p>
  
  <pre><code>host    dbname       dbuser       localhost               md5
  </code></pre>
  
  <p>If I do <code>psql -d dbname -U dbuser -h localhost</code> and then enter the password at the prompt I can see that it works so IDK why django is not sending the password and IDK where to look from here.</p>