mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-19 23:33:37 -05:00
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
|
||||
|
||||
Reference in New Issue
Block a user