From cd7fa8e23371a3f4e3534206cf3133005ed317f1 Mon Sep 17 00:00:00 2001 From: pluja Date: Tue, 8 Sep 2020 12:30:43 +0200 Subject: [PATCH] Fix config.py. Default to .env DATABASE_URL, fallback to DATABASE_URL on app.db --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index e6ba47f..81a2398 100644 --- a/config.py +++ b/config.py @@ -1,6 +1,8 @@ import os +from dotenv import load_dotenv basedir = os.path.abspath(os.path.dirname(__file__)) +load_dotenv(os.path.join(basedir, '.env')) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'