How to Install Django on Ubuntu and Fedora Linux

Hello everyone! Today I want to show you that how can you install Django web framework on Ubuntu and Fedora GNU/Linux distributions. First, I want to clarify what Django is. Django is a full-featured Python web framework for developing dynamic websites and applications and and this is also the most popular Python web framework. It contains built-in authantication system, ORM, admin interface and many other things.  This framework has become increasingly popular in recent years. If you want to know who is using Django, I have prepared a list for you;

Mozilla, Pinterest, Disqus, Instagram, Spotify, NASA’s Offical Website, Washington Post, BitBucket, Prezi and others.

I prepared an installation guide for both Ubuntu and Fedora Linux users. Today, many Linux distributions come pre-loaded with Python but If you do not have Python 3 installation on your system, you should install it at first(you can control it with the ‘python3 –version’ command). Later, in order to keep Django and its other components updated we need to install the Pip that controls the Python packages on your system.

You can install Pip to your system by following these steps;
Download this file and run the following;

Python Virtual Environment

We are going to use virtualenv to manage dependencies more easily and to gain better control in project. I prefer to use virtualenv(is a tool to create isolated Python environments) to do that. There are alternatives such as VirtualEnvWrapper and venv. It can be seen as chroot functionality for Python projects. In order to install this package;

Django Installation

If you have come here successfully, then you are ready to install Django. To get the most up-to-date version of Django, we run the following command with the pip package manager:

If you want to install a specific version of Django, run the following


You are ready to develop projects by using the Django Web Framework! If you are looking for a Python editor, you can read my article relating to the Atom text editor. You can also visit Django’s official website, which contains a free book.

Tagged: Tags