4 ms·
Great article! My apologies if this is too off-topic, but it's interesting to see everyone's virtualenv setup. I normally have my project/site/app in my enviro
by ceol 14y ago
Great article!
My apologies if this is too off-topic, but it's interesting to see everyone's virtualenv setup. I normally have my project/site/app in my environment folder, so it looks something like:
projectenv/
bin/
include/
lib/
project/
but I've also seen (as is the case in the OP's example):
project/
env/
__init__.py
database.py
...
or even having a separate folder for all environments:
envs/
env1/
env2/
...
project1/
...
project2/
...
Would anyone say there's a "preferred" setup?
- pindi 14y agoI don't think there's a "right way", but I prefer the second format. In the first format, it's difficult to delete and recreate the entire virtualenv without also deleting your project files. And in the third, your environments are unnecessarily separated from their respective projects.