title: PostgreSQL: could not connect to server: Connection refused
body: <p>I have a Django project, I want to switch from <code>SQLite</code> to <code>PostgreSQL</code>.</p>
  
  <p>After installation, I can't run the command <code>psql</code></p>
  
  <p>Here is the traceback:</p>
  
  <pre><code>psql: could not connect to server: Connection refused (0x0000274D/10061)
      Is the server running on host "localhost" (::1) and accepting
      TCP/IP connections on port 5432?
  could not connect to server: Connection refused (0x0000274D/10061)
      Is the server running on host "localhost" (127.0.0.1) and accepting
      TCP/IP connections on port 5432?
  </code></pre>
  
  <p><strong>OS: Windows</strong></p>