Remove default values.

This commit is contained in:
Patrick Jentsch 2019-08-26 09:57:26 +02:00
parent 7aef3de81d
commit 4d90b552d0
2 changed files with 7 additions and 7 deletions

View File

@ -13,16 +13,15 @@ class Config:
'trigger': 'interval'
}
]
MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.gmail.com')
MAIL_PORT = int(os.environ.get('MAIL_PORT', '587'))
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS', 'true').lower() in \
['true', 'on', '1']
MAIL_SERVER = os.environ.get('MAIL_SERVER')
MAIL_PORT = int(os.environ.get('MAIL_PORT'))
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS').lower() == 'true'
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
OPAQUE_ADMIN = os.environ.get('OPAQUE_ADMIN')
OPAQUE_STORAGE = os.environ.get('OPAQUE_STORAGE')
OPAQUE_MAIL_SUBJECT_PREFIX = '[Opaque]'
OPAQUE_MAIL_SENDER = 'Opaque Development <dev.opaque@gmail.com>'
OPAQUE_MAIL_SENDER = 'Opaque'
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SQLALCHEMY_TRACK_MODIFICATIONS = False

View File

@ -1,11 +1,12 @@
from dotenv import load_dotenv
load_dotenv()
from app import create_app, db, socketio
from app.models import Corpus, User, Role, Permission, Job
from dotenv import load_dotenv
from flask_migrate import Migrate
import os
load_dotenv()
app = create_app(os.getenv('FLASK_CONFIG') or 'default')