mirror of
https://github.com/ansible/awx.git
synced 2026-02-13 13:04:52 -03:30
* Added ability to do official vs dev builds (need to add to the RPM builds now) * Reverted changes to awx/wsgi.py after talking with Chris C. regarding the pathing issues and created config/wsgi.py instead that is installed to /var/lib/awx * Cleaned up package scripts so there's less junk being written to the screen during the install/uninstall
29 lines
862 B
Python
29 lines
862 B
Python
# Copyright (c) 2013 AnsibleWorks, Inc.
|
|
# All Rights Reserved.
|
|
|
|
"""
|
|
WSGI config for AWX project.
|
|
|
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
|
|
|
For more information on this file, see
|
|
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
from awx import MODE
|
|
from distutils.sysconfig import get_python_lib
|
|
|
|
# Update the default settings environment variable based on current mode.
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'awx.settings.%s' % MODE)
|
|
|
|
# Add local site-packages directory to path.
|
|
local_site_packages = os.path.join(os.path.dirname(__file__), 'lib',
|
|
'site-packages')
|
|
sys.path.insert(0, local_site_packages)
|
|
|
|
# Return the default Django WSGI application.
|
|
from django.core.wsgi import get_wsgi_application
|
|
application = get_wsgi_application()
|