diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-18 14:10:12 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-18 14:10:12 +0000 |
| commit | 2158c8e86ff4417973dd7ca650fab91e32c4e56a (patch) | |
| tree | e26d9e43f712e6f140dc744287431e6e46c9b143 /app/config.py | |
| download | AnnotateChange-2158c8e86ff4417973dd7ca650fab91e32c4e56a.tar.gz AnnotateChange-2158c8e86ff4417973dd7ca650fab91e32c4e56a.zip | |
initial commit
Diffstat (limited to 'app/config.py')
| -rw-r--r-- | app/config.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/config.py b/app/config.py new file mode 100644 index 0000000..c33cf25 --- /dev/null +++ b/app/config.py @@ -0,0 +1,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_TRACK_MODIFICATIONS = False + |
