aboutsummaryrefslogtreecommitdiff
path: root/app/config.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-18 14:10:12 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-18 14:10:12 +0000
commit2158c8e86ff4417973dd7ca650fab91e32c4e56a (patch)
treee26d9e43f712e6f140dc744287431e6e46c9b143 /app/config.py
downloadAnnotateChange-2158c8e86ff4417973dd7ca650fab91e32c4e56a.tar.gz
AnnotateChange-2158c8e86ff4417973dd7ca650fab91e32c4e56a.zip
initial commit
Diffstat (limited to 'app/config.py')
-rw-r--r--app/config.py11
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
+