diff options
author | Graham Mainwaring <graham@mhn.org> | 2016-07-28 16:31:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-28 16:31:29 +0200 |
commit | 951d8e1555abd0e936d2369120ad5e312328972b (patch) | |
tree | 65e6a669684543853c18e11b9868a18e515f1f23 /config | |
parent | Merge pull request #3151 from jaredevantabor/O-auth (diff) | |
download | awx-951d8e1555abd0e936d2369120ad5e312328972b.tar.xz awx-951d8e1555abd0e936d2369120ad5e312328972b.zip |
Check that venv is activated before loading wsgi app (#3148)
Check that venv is activated before loading wsgi app
Diffstat (limited to 'config')
-rw-r--r-- | config/wsgi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/wsgi.py b/config/wsgi.py index 9999eb08c8..c053481836 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -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 |