3 ms·
Basically in the WSGI file (which is just python code) you need to insert the virtual-env site packages in sys.path, with something like this ... virtenvdir
by bad_user 17y ago
Basically in the WSGI file (which is just python code) you need to insert the virtual-env site packages in sys.path, with something like this ...
virtenvdir = '/path/to/virtual-env/lib/python2.5/site-packages/'
import sys
if virtenvdir not in sys.path:
sys.path.insert(0, virtenvdir)