From d044576e08e06dd6a2c68ab7868c281cd2979764 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Thu, 17 Mar 2016 16:48:12 +0000 Subject: [PATCH] Order of imports means the config doesn't get set up properly --- wsgi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsgi.py b/wsgi.py index c875d4269..dd2db3d10 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,4 +1,3 @@ -from app import create_app from credstash import getAllSecrets import os @@ -17,6 +16,8 @@ from config import configs os.environ['NOTIFY_ADMIN_ENVIRONMENT'] = configs[environment] +from app import create_app + application = create_app() if __name__ == "__main__":