No matter where you store your virtual environment. Find a project structure that works for you.
I would not put virtual env inside the project, because you should not check it for version control (although you can use ignore). Usually you just need to check your requirements file so that you can recreate the environment.
I would not put the project in virtual env, because virtual envs are one-time. You might want to destroy the virtual env without destroying the project. In addition, you can run the same project under different virtual envs, for example. Before upgrading, check your code on Django 1.8 and 1.9.
You can find virtualenvwrapper . It has some tools that make it easy to create and switch between virtual environments. It stores all your virtual environments in one place, so you donβt have to worry about where to place them.
Is this correct or can I do this without first activating the virtual environment?
Before creating / working on a project, you must activate the virtual environment and install django.
Alasdair
source share