diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 18:34:19 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 18:34:19 -0700 |
commit | 4cf667c283d54f769e73d76bb23bbb68b4329cf8 (patch) | |
tree | 4bbeb1cdeb053c09e86e2cc41962382bcb837729 /python/config.py | |
parent | b2d5968e0a7ac5576782f54980c930345f4c5298 (diff) | |
download | fatcat-4cf667c283d54f769e73d76bb23bbb68b4329cf8.tar.gz fatcat-4cf667c283d54f769e73d76bb23bbb68b4329cf8.zip |
move python code to subdirectory
Diffstat (limited to 'python/config.py')
-rw-r--r-- | python/config.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/config.py b/python/config.py new file mode 100644 index 00000000..a7ec4b50 --- /dev/null +++ b/python/config.py @@ -0,0 +1,13 @@ + +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 + + # "Event more verbose" debug options. SECRET_KEY is bogus. + #SQLALCHEMY_ECHO = True + #SECRET_KEY = "kuhy0284hflskjhg01284" + #DEBUG = True |