mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02: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:
committed by
GitHub
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
|
from awx.wsgi import application # NOQA
|
||||||
|
|||||||
Reference in New Issue
Block a user