Django is Python web framework for developing dynamic websites and applications. Using Django we can develop Python web applications faster.
There are number of ways for installing Django, for now I will discuss two ways for installing Django
i) Global install from Packages
ii) Global install through pip
If you want to install Django using Ubuntu repositories, the process is straight forward. Firstly update local packages with apt
and then install python-django
package:
Install Django in just writing 2 commands
sudo apt-get update
sudo apt-get install python-django
Now check the version of django installed by typing
django-admin --version
Output of above command
1.6.1
Install Django through pip:
If you wish to install Django globally then the best way to install it is through pip
. Following commands will install Python 3 and Django
sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install django
Now verify that installation is successfull
django-admin --version
Output of the above command:
1.7.5
Thats all!
Thanks for reading the blog
0 Comment(s)