mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 05:43:11 -04:00
Fix import order so that configs work
This commit is contained in:
@@ -15,7 +15,6 @@ from flask import (
|
|||||||
g,
|
g,
|
||||||
url_for)
|
url_for)
|
||||||
|
|
||||||
from config import configs
|
|
||||||
from flask._compat import string_types
|
from flask._compat import string_types
|
||||||
from flask.globals import _lookup_req_object
|
from flask.globals import _lookup_req_object
|
||||||
from flask_login import LoginManager
|
from flask_login import LoginManager
|
||||||
@@ -68,6 +67,8 @@ current_service = LocalProxy(partial(_lookup_req_object, 'service'))
|
|||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
|
from config import configs
|
||||||
|
|
||||||
application = Flask(__name__)
|
application = Flask(__name__)
|
||||||
|
|
||||||
application.config.from_object(configs[os.environ['NOTIFY_ENVIRONMENT']])
|
application.config.from_object(configs[os.environ['NOTIFY_ENVIRONMENT']])
|
||||||
|
|||||||
Reference in New Issue
Block a user