Starting Point

“Writing your first Django app, part 1”

“Your first Django project!”

latest

“Django Tutorial: The Local Library website”

Create a project Create an app (or apps) in a project

Models Routing Views Fields Migrations URL

Django Admin

django-admin startproject project_name

django-admin startapp app_name

python3 manage.py migrate

python3 manage.py createsuperuser --email admin@example.com

python3 manage.py runserver

Django Debug Toolbar

##

Not: “from django.conf.urls import re_path” Should be: “from django.urls import re_path”

django.conf.urls.url() was deprecated in Django 3.0, and is removed in Django 4.0+. Basically replace url() with re_path().

Not: “from django.utils.encoding import force_text” Should be: from “django.utils.encoding import force_str”