aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-03-22 21:35:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-03-22 21:39:00 -0700
commitd64e403646393089214675e45fba801c2436e4d2 (patch)
treedc3a5fecd829d544395919af235c97ec6007aa38 /config.py
parentd4a287d4fc72bd68d41a7add042ae064bae4aa75 (diff)
downloadfatcat-d64e403646393089214675e45fba801c2436e4d2.tar.gz
fatcat-d64e403646393089214675e45fba801c2436e4d2.zip
make it run
Diffstat (limited to 'config.py')
-rw-r--r--config.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 00000000..bad871dc
--- /dev/null
+++ b/config.py
@@ -0,0 +1,8 @@
+
+import os
+basedir = os.path.abspath(os.path.dirname(__file__))
+
+class Config(object):
+ SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI') or \
+ 'sqlite:///' + os.path.join(basedir, 'fatcat_dev.sqlite')
+ SQLALCHEMY_TRACK_MODIFICATIONS = False