summaryrefslogtreecommitdiffstats
path: root/python/webface_config.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-12 23:18:56 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-12 23:18:56 -0800
commitb03bfc8f3fd84141738f775b273a99850d78e1ff (patch)
tree64858e474fa38aa015f06f5e15b851dcc85da421 /python/webface_config.py
parent055c464deea8cdaccf3ed384995d4409b0f51409 (diff)
downloadfatcat-b03bfc8f3fd84141738f775b273a99850d78e1ff.tar.gz
fatcat-b03bfc8f3fd84141738f775b273a99850d78e1ff.zip
refactor python modules
Diffstat (limited to 'python/webface_config.py')
-rw-r--r--python/webface_config.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/python/webface_config.py b/python/webface_config.py
new file mode 100644
index 00000000..3d6db049
--- /dev/null
+++ b/python/webface_config.py
@@ -0,0 +1,20 @@
+
+import os
+import subprocess
+
+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
+ GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip()
+ # This is, effectively, the QA/PROD flag
+ FATCAT_DOMAIN = "qa.fatcat.wiki"
+ ELASTIC_BACKEND = "https://search.fatcat.wiki"
+ ELASTIC_INDEX = "fatcat"
+
+ # "Event more verbose" debug options. SECRET_KEY is bogus.
+ #SQLALCHEMY_ECHO = True
+ #SECRET_KEY = "kuhy0284hflskjhg01284"
+ #DEBUG = True