Django: How to Install and Run Your First Web App

What is Django?

Simple Web App Architecture

Setting Up

Python

Pip

pip 19.1.1 from /path/to/binary/pip (python 3.5)
python -m pip install pip

Django

pip install django
django-admin --version
2.2.2

Generating the Project

django-admin startproject hello_django
cd hello_django
du -a
0 ./hello_django/__init__.py
4 ./hello_django/settings.py
4 ./hello_django/urls.py
0 ./hello_django/wsgi.py
8 ./hello_django
4 ./manage.py
12 .
python manage.py runserver
...
Django version 2.2.2, using settings 'hello_django.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store