Django doubt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Django doubt

Sorry I'm still new to this. Why do people create virtual environment to run django???

17th Apr 2020, 5:13 PM
Bharath nayak
Bharath nayak - avatar
1 Answer
+ 5
Let me give an example. Suppose you have made 2 applications named App1 and App 2. Now App 1 runs on older version of a module and App 2 runs on newer modules. If you update the modules in system, App1 will not work, but if you don't update App2 will not work. What would you do? You just create a virtual environment which is isolated Python environment. Now in one virtual environment you can add updated modules and in other one, you can have older modules. Hence both apps are running fine on same computer.
17th Apr 2020, 5:20 PM
Utkarsh Sharma
Utkarsh Sharma - avatar