When using virtualenv (or virtualenvwrapper), the recommended practice is to group all your virtual environments together ... for example in ~/.virtualenvs
BUT, I've noticed in reading a number of articles on deploying Django applications, that the recommendation seems to be to put your virtual environments somewhere under the root of the individual web application ... for example in /srv/www/example.com/venv.
My questions are:
Why?
Would it matter if I went one way or the other?
And is one way recommended over another?
Here are my thoughts:
rsync
the whole project). Nothing stopping you from doing this with a venv in a common folder, but it feels more natural to deploy a single tree.I tend to prefer the former for more experimental / early-stage work, and the latter for projects that are deployed.