rfq: cleanup

This commit is contained in:
Sebastien Bourdeauducq 2020-04-15 12:36:30 +08:00
parent e8d584fba5
commit 9e8ec71c9f
1 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,5 @@
from os import getenv
from dotenv import load_dotenv from dotenv import load_dotenv
from flask import Flask from flask import Flask
from flask import current_app from flask import current_app
@ -7,15 +9,14 @@ from flask import make_response
from flask import request from flask import request
from flask_mail import Mail from flask_mail import Mail
from flask_mail import Message from flask_mail import Message
from os import getenv
from werkzeug.middleware.proxy_fix import ProxyFix from werkzeug.middleware.proxy_fix import ProxyFix
load_dotenv() load_dotenv()
app = Flask(__name__) app = Flask(__name__)
app.config.update( app.config.update(
DEBUG=True if getenv('FLASK_DEBUG') == 'True' else False, DEBUG=getenv("FLASK_DEBUG") == "True",
SECRET_KEY=getenv('FLASK_SECRET_KEY'),
MAIL_SERVER=getenv("FLASK_MAIL_SERVER"), MAIL_SERVER=getenv("FLASK_MAIL_SERVER"),
MAIL_PORT=getenv("FLASK_MAIL_PORT"), MAIL_PORT=getenv("FLASK_MAIL_PORT"),
MAIL_USE_SSL=getenv("FLASK_MAIL_USE_SSL"), MAIL_USE_SSL=getenv("FLASK_MAIL_USE_SSL"),