From 9e8ec71c9fd2c09ea638ed45f1652cc49c1c5928 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 15 Apr 2020 12:36:30 +0800 Subject: [PATCH] rfq: cleanup --- server/rfq/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/rfq/__init__.py b/server/rfq/__init__.py index e5ff504..5d04dca 100644 --- a/server/rfq/__init__.py +++ b/server/rfq/__init__.py @@ -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"),