Introduction
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
- $ apt-get install python3-venv
Step 2 - Create a Directory
Step 3 - Create Virtual Environment
- $ python3 -m venv djangoenv
Step 4 - Activate Virtual Environment
- $ source djangoenv/bin/activate
Step 5 - 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.