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)
Comments
what about deploing on apache or nginx
Great howto. Thanks.
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!
Is it possible integrate Djago with mySQL?
Great Post! Very usefull!
Please dont delete python2 ever.
This will screw up your ubuntu.
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!
how do you remove ?
Beautiful
Thank you
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
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
worked for me
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.
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
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
In case of any error or failure, execute the same command with "sudo".
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.
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.
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.
what's after this basic things completed?
suggest me tutorials
wonderful
I failed to install using PIP, but I succeeded using virtual env
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
Woot. It worked. After three other tries on other websites' tutorials, yours worked flawlessly. Thanks!
much appreciated work to get me started on django thanks alot