1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00
awx/config/wsgi.py
Graham Mainwaring 951d8e1555 Check that venv is activated before loading wsgi app (#3148)
Check that venv is activated before loading wsgi app
2016-07-28 10:31:29 -04:00

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