Is it best practice to have a virtualenv for each django project and in the root of the django…
Justin Chan
11

Yes! When working with many Django projects, each project may be using a different Django version or different third party applications such as AllAuth or Django REST Framework.

It being in the root level causes no problems, as it should not be picked up by your version control. If you feel the need you can make it hidden with a ‘.’ in the beginning of the name of the directory such as ‘.venv’ (however the standard names are ENV or venv).

Show your support

Clapping shows how much you appreciated Dylan Stein’s story.