November 2015
Beginner to intermediate
840 pages
26h 30m
English
Our GCBV, when compared to Django’s GCBVs, is somewhat problematic. If we wanted to override behavior, we would be stuck overriding the entirety of the get() method, which rather defeats the purposes. Instead, we should provide multiple methods that each provide different behavior.
In the case of an object detail page, we are doing several things:
Getting an object (Tag, Startup, etc.) from the database
Building a dictionary for the template context
Setting the new object in the template context as a specific ...
Read now
Unlock full access