mirror of
https://github.com/ansible/awx.git
synced 2024-10-29 20:55:32 +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
|