Reputation: 16385
I am new to Python, and looking to deploy a simple application to HEROKU. I have added a postgress instance to HEROKU. I am trying to see the URL of the postgress database. Here is my code
import os
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return os.environ.get("DATABASE_URL","NONE")
But i am always getting none, what am i doing wrong?
Upvotes: 0
Views: 52