title: Cannot sync database for Django app on its Heroku postgres database
body: <p>I'm trying to migrate my postgres database to Heroku for a django application. In my settings.py file, I have the following, as dictated by the Heroku tutorial:</p>
  
  <pre><code>import dj_database_url
  DATABASES = {'default': dj_database_url.config()}
  </code></pre>
  
  <p>However, when I run <code>heroku run python manage.py syncdb</code>I get the following error: </p>
  
  <pre><code>django.db.utils.OperationalError: 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?
  </code></pre>
  
  <p>What am I missing? Thanks in advance!</p>