all repos — moviedb @ 876024d8b8e936cad742d208033d14c81e21cdbc

A Flask web-app to browse movie information from IMDb using imdbpy

rookie mistake fix
Prithu Goswami prithugoswami524@gmail.com
Sun, 09 Aug 2020 14:07:05 +0530
commit

876024d8b8e936cad742d208033d14c81e21cdbc

parent

336b8b25ffd12ff3bc1c2961b2661bbdb44e1599

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M moviedb/__init__.pymoviedb/__init__.py

@@ -11,11 +11,11 @@

# Set the db_url variable or else it will read the env variable # or else environment variable DATABASE_URL will be used db_url="" - if os.environ['DATABASE_URL']: + if 'DATABASE_URL' in os.environ.keys(): db_url = os.environ['DATABASE_URL'] app.config['SQLALCHEMY_DATABASE_URI'] = db_url - app.config['SECRET_KEY'] = 'thisisasecret' + app.config['SECRET_KEY'] = os.environ['APP_CONFIG_SECRET_KEY'] db.init_app(app) CORS(app)