mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Check that venv is activated before loading wsgi app (#3148)
Check that venv is activated before loading wsgi app
This commit is contained in:
parent
3a66c83e7c
commit
951d8e1555
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user