diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-11-15 20:34:41 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-11-15 20:34:41 -0700 |
commit | 3743f7056dcdbe1a16a00418ea10ebef2669cf61 (patch) | |
tree | 298657931ead09efbcf53ccb08bfc3ee501623c1 /config.py | |
parent | 81834656747ead193334a36d8f49045cc214b53e (diff) |
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..14f926c --- /dev/null +++ b/config.py @@ -0,0 +1,10 @@ +import os + +basedir = os.path.abspath(os.path.dirname(__file__)) + +class Config(object): + SECRET_KEY = os.environ.get('SECRET_KEY') or 'iamgroooooooot' + TEMPLATES_AUTO_RELOAD = True + SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \ + 'sqlite:///' + os.path.join(basedir, 'app.sqlite') + SQLALCHEMY_TRACK_MODIFICATIONS = False |