Five Simple Steps to Install Django in Ubuntu

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.

In this blog post, i have tried to compile five basic commands which you need to execute in-order to install Django in your Ubuntu machine.

Prerequisites:

  • Ubuntu 16.04 or higher.
  • Python 3

Install PIP

sudo apt install python3-pip

Install Virtual Environment

sudo pip3 install virtualenv 

Create a Virtual Environment

virtualenv venv
** You can replace "venv" with the name of your choice. 

Activate Virtual Environment

source venv/bin/activate

Install Django

pip install Django
** Executing this command will install the latest stable version of Django.

That’s all.

Advertisement