mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
951d8e1555
Check that venv is activated before loading wsgi app
5 lines
200 B
Python
5 lines
200 B
Python
import sys
|
|
if sys.prefix != '/var/lib/awx/venv/tower':
|
|
raise RuntimeError('Tower virtualenv not activated. Check WSGIPythonHome in Apache configuration.')
|
|
from awx.wsgi import application # NOQA
|