Skip to main content
Loading page…
Python Mastery
Chapter 34
Lesson 4 of 4
Views, URLs, Templates & Forms
Contents
Notes
Tutor
Concept
Function-Based vs Class-Based Views
Loading activity…
Previous
1 / 11
Continue
Contents
Notes
Discussion
Tutor
55 min
11 activities
0 of 11 done
In this lesson
1
Function-Based vs Class-Based Views
2
URLconf: Path Converters and Namespaces
3
The Django Template Language
4
ModelForms: Forms Derived from Models
5
Always Include {% csrf_token %} in POST Forms
6
A Complete CBV: CreateView
7
Static Files vs Media Files
8
Views, URLs & Templates Quiz
9
Template Syntax Categories
10
Generic CBV Classes
11
Senior Lab: Build, Run, and Review Evidence
Objectives
Write function-based views and the most common class-based views (ListView, DetailView, CreateView)
Configure URLconfs with path converters and named routes
Write Django templates using the template language (variables, tags, filters, inheritance)
Create and process ModelForms with validation
Further reading
Django documentation
Chapter 34 · Django: The Batteries-Included Framework
Projects, Apps & the Request Lifecycle
Models & the ORM
The Admin & the Shell
Views, URLs, Templates & Forms
Previous: The Admin & the Shell
Next: Serializers