How To Setup Django Virtual Environment On Linux

In this article, you'll learn about how to create Django virtual environment.

In this article, you'll learn about how to create a Django virtual environment.
 

What is Django?

 
Django is a free and open source web application framework, written in Python. A web framework is a set of components that helps you to develop websites faster and easier.
 

Install Virtual Django Environment on Linux 

 
Step 1 - Install Package 
  1. $ apt-get install python3-venv 
djanjo virtual environment setup install package
 
Step 2 - Create a Directory
  1. $ mkdir djangoenv 
djanjo virtual environment setup Create a directory 
 
Step 3 - Create Virtual Environment
  1. $ python3 -m venv djangoenv 
Step 4 - Activate Virtual Environment 
  1. $ source djangoenv/bin/activate 
djanjo virtual environment setup activate virtual environment 
 
Step 5 - Install Django
  1. $ pip install django
djanjo virtual environment setup install django 
 
Conclusion
 
That's all, we learned about how to install a virtual Django environment on a Linux operating system. I hope you understood. If you have any doubts, please ask me.