How To Install the Django Web Framework 2 on Ubuntu 16.04
Here are the steps to install Django 2 on Ubuntu 16.04:
Install Python3 and pip3:
nnsudo apt-get update nsudo apt-get install python3 python3-pipCreate a virtual environment for your Django project:
nnsudo pip3 install virtualenv nvirtualenv myenv source myenv/bin/activateInstall Django:
nnpip install django==2.0Verify that Django is installed correctly:
nndjango-admin --versionCreate a new Django project:
nndjango-admin startproject myprojectChange into the project directory:
nncd myprojectRun the development server:
nnpython manage.py runserverOpen your web browser and navigate to http://localhost:8000 to see the default Django landing page.
Note: This is a basic guide to get you started with Django 2 on Ubuntu 16.04. To learn more about developing with Django, I would recommend visiting the Django Project’s official website.
n(Tramadol)