So I have a flask app under development using virtualenv. I have a tree like this:
./app - view, model, etc
./flask - virtualenv
Obviously app
is managed by git. My question is: should I do the same with flask
?
So I have a flask app under development using virtualenv. I have a tree like this:
./app - view, model, etc
./flask - virtualenv
Obviously app
is managed by git. My question is: should I do the same with flask
?
No, you don't put anything you can instead easily generate into the repository. And virtualenvs are tied to your system; you could not re-use it on another.
Store the requirements.txt
file and a README showing how to create the virtualenv in git, and every time you need to set up for development on a new machine, create the virtualenv from scratch.