title: Django - (OperationalError) FATAL: Ident authentication failed for user "username"
body: <p>I've written a simple sqlalchemy-django model, according to this manual: <a href="http://lethain.com/replacing-django-s-orm-with-sqlalchemy/" rel="noreferrer">http://lethain.com/replacing-django-s-orm-with-sqlalchemy/</a>, which worked for me pretty well.<br>
  My Django is connected to a remote postgresql database, with this settings:</p>
  
  <pre><code>DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
      'NAME': 'wetlab_dev',                               # Or path to database file if using sqlite3.
      'USER': 'limlim',                                 # Not used with sqlite3.
      'PASSWORD': '',                                     # Not used with sqlite3.
      'HOST': 'cab-27',                                   # Set to empty string for localhost. Not used with sqlite3.
      'PORT': '',                                         # Set to empty string for default. Not used with sqlite3.
      }
  }
  </code></pre>
  
  <p>It worked for me a few days ago, but now when I try to load the 'homepage' again, it shows me the following error message:  </p>
  
  <pre><code>(OperationalError) FATAL:  Ident authentication failed for user "limlim"    
  </code></pre>
  
  <p>The sqlalchemy engine-configuration is:  </p>
  
  <pre><code>CONNECTION_STR = 'postgresql://limlim:@cab-27/wetlab_dev'
  
  engine = sqlalchemy.create_engine(CONNECTION_STR)   
  </code></pre>
  
  <p>It seems like I haven't changed anything that is related to the database configurations, but still I get this error message.<br>
  Also, when I try to connect to the database on the remote server with my username, I succeed doing it, so I guess it's not a problem of permissions for my username to get to this database.  </p>
  
  <p>What can be done to overcome this error?</p>