See also

Refer to the previous recipe, Writing function-based views and URL routes, to understand the contrast between class-and function-based views.