diff options
| -rw-r--r-- | app/config.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/config.py b/app/config.py index b03020f..bd7561c 100644 --- a/app/config.py +++ b/app/config.py @@ -5,9 +5,11 @@ import os # TODO: change these things to an instance path basedir = os.path.abspath(os.path.dirname(__file__)) + class Config(object): SECRET_KEY = os.environ.get("SECRET_KEY") or "you-will-never-guess" - SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL") or "sqlite:///" + os.path.join(basedir, "app.db") + SQLALCHEMY_DATABASE_URI = os.environ.get( + "DATABASE_URL" + ) or "sqlite:///" + os.path.join(basedir, "app.db") SQLALCHEMY_TRACK_MODIFICATIONS = False - |
