Check that venv is activated before loading wsgi app (#3148)

Check that venv is activated before loading wsgi app
This commit is contained in:
Graham Mainwaring 2016-07-28 10:31:29 -04:00 committed by GitHub
parent 3a66c83e7c
commit 951d8e1555

View File

@ -1 +1,4 @@
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