Last Updated: February 25, 2016
·
418
· lgiordani

Digging Up Django Class-based Views - 2

In the first installment of this short series, I introduced the theory behind Django class-based views and the reason why in this context classes are more powerful than pure functions. I also introduced one of the generic views Django provides out-of-the-box, which is ListView.

In this second post I want to talk about the second most used generic view, DetailView, and about custom querysets and arguments. Last, I’m going to introduce unspecialized class-based views that allow you to build more complex Web pages. To fully understand DetailView, however, you need to grasp two essential concepts, namely querysets and view parameters. So I’m sorry for the learn-by-doing readers, but this time too I’m going to start with some pure programming topics.

Read the post on The Digital Cat