
- #Install python 2.7 ubuntu 16.04 server how to
- #Install python 2.7 ubuntu 16.04 server install
- #Install python 2.7 ubuntu 16.04 server update
It is quite possible that your system would already have the Universe repository, still run the below command to add or confirm it.

#Install python 2.7 ubuntu 16.04 server how to
Open a command terminalĪlthough everybody is familiar with how to run the command terminal, however, those who don’t know can use the shortcut key combination i.e Ctrl+Alt+T.
#Install python 2.7 ubuntu 16.04 server install
Install Python 2.7 on Ubuntu 20.04 LTS Linux and make it default 1. See all available Python version on the system

Note : Change your_server_IP details with your actual server IP as xx.xx.xx.xxįinally, run the Django application server with below command python3 manage.py runserver 0.0.0.0:8000ĭjango application server is running now. vim django_app/settings.pyĪdd the IP ALLOWED_HOSTS = To allow external hosts, edit settings.py file and add IP under ALLOWED_HOSTS.

By default, Django doesn’t allow external hosts to access the web interface. You will get an output as below,Enter the details Step 5 : Run the Django Application Run the following command from your Django application directory. We will now be creating a superuser account for the administration of the Django application. Python3 manage.py migrate Step 4 : Creating a Super User for Django Application Go to the path and migrate the changes cd django_app The django-admin command provides you the option to create a new Django application via command line.Navigate to the directory you need to create a new application and use below command django-admin startproject django_app You can also use pip to install Django on Ubuntu systems pip3 install DjangoĪfter Django is installed,You can verify the versionĢ.2.7 Step 3 : Create A Django Application Pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) Step 2 : Installing Djangoĭjango source code is available as Github repository. To install pip,Use below command sudo apt-get install python3-pip
#Install python 2.7 ubuntu 16.04 server update
If you have launched a new server,Then we recommend to update the server with below command sudo apt-get updateīy default, Python 3 is installed on your, but if your system doesn’t have Python installed, Execute the below commands to install it sudo apt-get install python3
