title: PostgreSQL OperationalError: could not connect to server
body: <p>For the first time today I ran into this error:</p>
  
  <blockquote>
    <p>could not connect to server: No such file or directory
      Is the server running locally and accepting
      connections on Unix domain socket "/tmp/.s.PGSQL.5432"?</p>
  </blockquote>
  
  <p>I am running a simple Django blog, locally using PostgreSQL.</p>
  
  <p>When I run:</p>
  
  <blockquote>
    <p>ps auxw | grep postgres</p>
  </blockquote>
  
  <p>I get the following:</p>
  
  <pre><code>Chris    3260    0.5   0.0  2432768    620 s000  R+   11:37AM   0:00.00 grep postgres
  </code></pre>
  
  <p>The last time I was able to successfully use PostgreSQL was last night. I have not changed anything since then, so it might be something to do with my computer maybe? </p>
  
  <p>If you need anymore info, just ask me :) Thanks for your help!</p>