mirror of
https://github.com/ansible/awx.git
synced 2026-04-11 13:09:21 -02:30
all vendor dependencies expressed in requirements.txt
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
# Copyright (c) 2015 Ansible, Inc.
|
||||
# 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
|
||||
|
||||
"""
|
||||
WSGI config for AWX project.
|
||||
|
||||
@@ -11,11 +16,8 @@ https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
|
||||
"""
|
||||
|
||||
# Prepare the AWX environment.
|
||||
from awx import prepare_env
|
||||
prepare_env()
|
||||
|
||||
import logging
|
||||
from awx import __version__ as tower_version
|
||||
logger = logging.getLogger('awx.main.models.jobs')
|
||||
try:
|
||||
fd = open("/var/lib/awx/.tower_version", "r")
|
||||
@@ -26,5 +28,4 @@ except Exception:
|
||||
raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.")
|
||||
|
||||
# Return the default Django WSGI application.
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
application = get_wsgi_application()
|
||||
|
||||
Reference in New Issue
Block a user