diff --git a/awx/wsgi.py b/awx/wsgi.py index 5be755ae42..e1094f6992 100644 --- a/awx/wsgi.py +++ b/awx/wsgi.py @@ -2,10 +2,14 @@ # All Rights Reserved. import logging -from django.core.wsgi import get_wsgi_application -from awx import prepare_env from awx import __version__ as tower_version +# Prepare the AWX environment. +from awx import prepare_env +prepare_env() + +from django.core.wsgi import get_wsgi_application + """ WSGI config for AWX project. @@ -15,9 +19,6 @@ For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ -# Prepare the AWX environment. -prepare_env() - logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r")