diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-18 16:59:58 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-18 16:59:58 +0000 |
| commit | ee34e22cb97132289039e190810a81ca692a664a (patch) | |
| tree | ab96209eedecf0d8105306379e8d5271ec6da6bb /app | |
| parent | refactor (diff) | |
| download | AnnotateChange-ee34e22cb97132289039e190810a81ca692a664a.tar.gz AnnotateChange-ee34e22cb97132289039e190810a81ca692a664a.zip | |
Use dotenv package
Diffstat (limited to 'app')
| -rw-r--r-- | app/config.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/config.py b/app/config.py deleted file mode 100644 index 56e4910..0000000 --- a/app/config.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- - -import os - -# TODO: change these things to an instance path -basedir = os.path.abspath(os.path.dirname(__file__)) - - -class Config(object): - SECRET_KEY = os.environ.get("SECRET_KEY") or "you-will-never-guess" - - SQLALCHEMY_DATABASE_URI = os.environ.get( - "DATABASE_URL" - ) or "sqlite:///" + os.path.join(basedir, "app.db") - SQLALCHEMY_TRACK_MODIFICATIONS = False - - MAIL_SERVER = os.environ.get('MAIL_SERVER') - MAIL_PORT = int(os.environ.get('MAIL_PORT') or 25) - MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None - MAIL_USERNAME = os.environ.get('MAIL_USERNAME') - MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD') - ADMINS = ['gvandenburg@turing.ac.uk'] |
