mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Updated config to be string based not class based and removed old style live/staging files.
This commit is contained in:
@@ -13,8 +13,9 @@ from flask import (
|
||||
current_app,
|
||||
request,
|
||||
g,
|
||||
url_for
|
||||
)
|
||||
url_for)
|
||||
|
||||
from config import configs
|
||||
from flask._compat import string_types
|
||||
from flask.globals import _lookup_req_object
|
||||
from flask_login import LoginManager
|
||||
@@ -69,7 +70,7 @@ current_service = LocalProxy(partial(_lookup_req_object, 'service'))
|
||||
def create_app():
|
||||
application = Flask(__name__)
|
||||
|
||||
application.config.from_object(os.environ['NOTIFY_ADMIN_ENVIRONMENT'])
|
||||
application.config.from_object(configs[os.environ['NOTIFY_ADMIN_ENVIRONMENT']])
|
||||
|
||||
init_app(application)
|
||||
logging.init_app(application)
|
||||
|
||||
Reference in New Issue
Block a user