forked from M-Labs/web2019
rfq: cleanup
This commit is contained in:
parent
e8d584fba5
commit
9e8ec71c9f
|
@ -1,3 +1,5 @@
|
|||
from os import getenv
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from flask import Flask
|
||||
from flask import current_app
|
||||
|
@ -7,15 +9,14 @@ from flask import make_response
|
|||
from flask import request
|
||||
from flask_mail import Mail
|
||||
from flask_mail import Message
|
||||
from os import getenv
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
|
||||
load_dotenv()
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.update(
|
||||
DEBUG=True if getenv('FLASK_DEBUG') == 'True' else False,
|
||||
SECRET_KEY=getenv('FLASK_SECRET_KEY'),
|
||||
DEBUG=getenv("FLASK_DEBUG") == "True",
|
||||
MAIL_SERVER=getenv("FLASK_MAIL_SERVER"),
|
||||
MAIL_PORT=getenv("FLASK_MAIL_PORT"),
|
||||
MAIL_USE_SSL=getenv("FLASK_MAIL_USE_SSL"),
|
||||
|
|
Loading…
Reference in New Issue