17.2 Building Generic Object Detail Pages

The most common task when building a website is to have a page dedicated to displaying the information of a model. At the moment, we have detail pages for Tag, Startup, and Post. The Startup page includes a list of related NewsLink objects.

In this section, we use CBVs to consolidate all of the code in our organizer detail views into a single class, resulting in a (custom, as opposed to Django) GCBV.

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.