Comments on How to Install Django on Ubuntu 16.04 LTS

Django is a web application framework written in python that follows the MVC (Model-View-Controller) architecture, it is available for free and released under an open source license. In this tutorial, we will install Django 1.10 on an Ubuntu 16.04 server. Django can be installed on a server in many ways, in this tutorial, I will show you to install it with pip, virtualenv and directly from the Django GIT sources. Finally, I will show you the first steps to start a new project with the Django web framework.

24 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Essa

what about deploing on apache or nginx

By: sym

Great howto. Thanks.

By: BTG

Hey I am getting the error

update-alternatives: error: error creating symbolic link '/etc/alternatives/python.dpkg-tmp': Permission deniedwhen running 'update-alternatives --install /usr/bin/python python /usr/bin/python3 1'

any help would be greatly appreciated!

By: Bruno Lourenço

Is it possible integrate Djago with mySQL? 

Great Post! Very usefull!

By: Athar

Please dont delete python2 ever.

This will screw up your ubuntu.

By: Vanja

To fix the locale on the latest release of Ubuntu 16.04 I had to type 'export LC_ALL=C'. It did not work with the language spec.

Thanks for instructive introduction to django!

By: dan

how do you remove ?

By: cynthia

Beautiful

By: Himanshu

Thank you

By: Amol

 update-alternatives --install /usr/bin/python python /usr/bin/python3update-alternatives: --install needs <link> <name> <path> <priority>Use 'update-alternatives --help' for program usage information.

 

Why this issue is appearing

By: frstattack

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1

worked for me

By: priyanka

Instead of removing ubuntu, add alias python=python3 in .bashrc file and type the same in terminal. Now you will be able to use pyhton3. 

By: iam

In step 1, I believe the update-alternatives --install /usr/bin/python python /usr/bin/python3 command needs a "prioirty" parameter at the end.update-alternatives: --install needs <link> <name> <path> <priority>It should be: update-alternatives --install /usr/bin/python python /usr/bin/python3 1

By: Joseph Saunders

The step to set python 3.5.2 as the default python needs the 'priority' arg.

This:

update-alternatives --install /usr/bin/python python /usr/bin/python3

Needs toing like this:

update-alternatives --install /usr/bin/python python /usr/bin/python3 1

By: Ankit Kesharwani

In case of any error or failure, execute the same command with "sudo".

By: yodabug

If you follow this article will it not break apt? Apt requires python2-if you default the system to pyhton3 there will be BIG trouble. Is there a way to do this and NOT make python3 the system default? Make it available for apache/django but nothing else on the system. I run Xubuntu 1604 release.

By: Elisha Kalya

To whom it may concern, Thank you for this tutorial. I had been having trouble installing, setting up django on my ubuntu. This tutorial helped sort my problem and that I am now  up and running. I look forward to developing a great python web app. Thanks.

By: Miguel Carrera

Hi! Just to comment that in the command:

"update-alternatives --install /usr/bin/python python /usr/bin/python3", you've missed the <proirity>

It should be:

"update-alternatives --install /usr/bin/python python /usr/bin/python3 1" as shown in the image.

By: adithya

what's after this basic things completed?

suggest me tutorials

By: arben

wonderful

By: Gatot

I failed to install using PIP, but I succeeded using virtual env

By: Gary

Will installing this mess up my server configuration? running apache2 + php 7.0.30. I want to use a django routine to connect to backblaze

By: Mighty Investor

Woot.  It worked.  After three other tries on other websites' tutorials, yours worked flawlessly.  Thanks!

By: okello

much appreciated work to get me started on django thanks alot