From 3743f7056dcdbe1a16a00418ea10ebef2669cf61 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 15 Nov 2023 20:34:41 -0700 Subject: initial structure --- config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 config.py (limited to 'config.py') 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 -- cgit v1.2.3