VIRTUAL ENVIRONMENT

20 views
Skip to first unread message

Philip Onyeachonam

unread,
Apr 10, 2020, 5:31:22 PM4/10/20
to Django users
is it   compulsory that i isolate the virtual environment when im installing Django
 

Malcolm MacKinnon

unread,
Apr 10, 2020, 5:55:26 PM4/10/20
to django...@googlegroups.com
I'm not sure what you mean by compulsory, but most serious django
programmers do use the virtual environment so that they don't run into
errors among dependencies. For example, some versions of django may
not be compatible with python 3.2, etc. There are different tools
available to use a virtual environment. You may want to check out
Anaconda: https://docs.anaconda.com/.

On Fri, Apr 10, 2020 at 2:31 PM Philip Onyeachonam
<pio14...@gmail.com> wrote:
>
> is it compulsory that i isolate the virtual environment when im installing Django
>
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3c1d3abd-8e16-4fcc-a21c-e119b6dd927a%40googlegroups.com.

Jatin Agrawal

unread,
Apr 10, 2020, 6:21:10 PM4/10/20
to Django users
It's a good development practice to work on a virtual environment.

Virtual environments are completely different from each, they are just sharing the common pc, else they are totally different. The main use of virtual environments is to prevent projects from using the same versions of packages installed. Sometimes you may want to use older version of a package for a project and the newer version of the same package for a different project.
You can consider this world as a virtual environment and we "Homosapiens" are a package with different versions.

Question: Why would you want to and should use a virtual environment while installing Django or any other package that is required for a project?

Answer: Suppose you are creating two projects and you are required to use different versions of Django for both projects, then how would you do it? There come virtual environments for your help. You can do this by creating two virtual environments and install different versions of Django as required.


I hope I have answered your question properly to clear your doubts.
Reply all
Reply to author
Forward
0 new messages