diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-18 14:56:32 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-18 14:56:32 +0000 |
| commit | d3115d5c459ffad58f07c7b3dd6e0eb132ebbac6 (patch) | |
| tree | 509136fa428982dbeaec6e1f162702f0c65ad63a | |
| parent | Record last visit (diff) | |
| download | AnnotateChange-d3115d5c459ffad58f07c7b3dd6e0eb132ebbac6.tar.gz AnnotateChange-d3115d5c459ffad58f07c7b3dd6e0eb132ebbac6.zip | |
Formatting
| -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 - |
