title: How To Run Postgres locally
body: <p>I read the Postgres docs for Flask</p>
  
  <p>and they said that to run Postgres you should have the following code</p>
  
  <pre><code>app = Flask(__name__) 
  app.config['SQLALCHEMY_DATABASE_URI'] = postgresql://localhost/[YOUR_DB_NAME]' 
  db = SQLAlchemy(app)
  </code></pre>
  
  <p>How do I know my database name?</p>
  
  <p>I wrote db as the name - but I got an error </p>
  
  <pre><code>sqlalchemy.exc.OperationalError: (OperationalError) FATAL:  database "[db]" 
  does not exist
  </code></pre>
  
  <p>Running Heroku with Flask if that helps</p>