2 ms·
> So do you use virtualenv in production? Is there a good tutorial on this for my developers? Using virtualenv in production mostly boils down to `pip -r reqs.
by irahul 14y ago
> So do you use virtualenv in production? Is there a good tutorial on this for my developers?
Using virtualenv in production mostly boils down to `pip -r reqs.txt -E virtual_env`(in place of pip install -r reqs.txt) and making sure virtualenv path is the first in sys.path http://code.google.com/p/modwsgi/wiki/VirtualEnvironments http://code.google.com/p/modwsgi/wiki/VirtualEnvironments
You can also execfile the activation script, but I prefer changing sys.path.