Installation Guide For Django (Python)
Django is one of the most popular python web framework. Although it is considered as an MVC framework but basically it is an MTC (model, template, controller) architecture . You can install Django in your Ubuntu Operating System by following the below mentioned steps –
Before we start, I hope you are familiar with all sort of Linux commands and their execution. So, without any further wastage of time let’s get started with the installation process.
If we are working on a linux system python will be installed by default. You can just verify it by typing “python” in your terminal. ( ctrl+z to exit ). All we need is to just install Django.
Although there are a number of ways to do so, but as per my experience this is the best so far.
For installation of Django first we need to install pip in our system. This can be done by the following command.
sudo apt-get update
sudo apt-get install python-pip
Although Django does not work on python 3 but still if you want to install pip for python 3 you can go for the following command ‘sudo apt-get install python3-pip’
Now as you have installed pip in your system you can proceed with the installation of Django. You just have to type the following command.
sudo pip install django
The above command will install django in your system. Also, it will ask you to upgrade it if it was already installed in your system. The upgradation can be made by the following command.
sudo pip install django –upgrade
Now your system is loaded with Django, just to verify the installation run the following command
NOTE: Make sure that you have the latest Django version running on your system else it may create some troubles in the future processing of your project.