Reputation: 712
What is the proper way of adding an already existing Django project to a newly created virtual environment? Do I just move the project to the virtual environment root directory?
Upvotes: 1
Views: 179
Reputation: 19983
It doesn't matter where the directory is - the only important thing is that you activate the virtual environment every time you want to work on the project.
I personally prefer to have the project directory inside the virtual env directory, but that is not required.
One caveat: don't put the virtual env inside your project directory. That may cause problems with test discovery and with git.
Upvotes: 4