title: Database connection Error while hosting site on heroku
body: <p>So I was trying to host my first Django app on heroku.
  Took help form some Youtube channels. I used postgresql as my database. Now when I tried hosting my app on heroku the following error is showing up:</p>
  
  <pre><code>could not connect to server: Connection refused
      Is the server running on host "localhost" (127.0.0.1) and accepting
      TCP/IP connections on port 5432?```
  **This is the error showing**
  </code></pre>