title: Django connection to PostgreSQL: "Peer authentication failed"
body: <pre><code>OperationalError at /admin/
  
  FATAL:  Peer authentication failed for user "myuser"
  </code></pre>
  
  <p>This is the error I am receiving when I try to get to my Django admin site. I had been using MySQL database no problem. I am new to PostgreSQL, but decided to switch because the host I ultimately plan to use for this project does not have MySQL.</p>
  
  <p>Therefore, I figured I could go through the process of installing PostgreSQL, run a <code>syncdb</code> and be all set.</p>
  
  <p>Problem is that I cannot seem to get my app to connect to the database. I can login to PostgreSQL via command line or desktop app that I downloaded. Just not in the script. </p>
  
  <p>Also, I can use <code>manage.py shell</code> to access the db just fine.</p>
  
  <p>Any thoughts?</p>