0

Do we need virtual environment if we are using docker, in django project?

  • No need, the docker container is something isolated, and I'm sure that you won't put more than one project in the same container. – Davit Tovmasyan Dec 12 '20 at 08:00
  • see https://stackoverflow.com/questions/29146792/why-people-create-virtualenv-in-a-docker-container – NiRR Dec 12 '20 at 09:50
  • Most Python Dockerfiles don't install a virtual environment; activating it is mechanically a little tricky, and the Docker image itself provides sufficient isolation from other Pythons. But a host virtual environment is still extremely useful for day-to-day development. – David Maze Dec 12 '20 at 11:08

0 Answers0