diff options
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 |