18.9 Putting It All Together

In Chapter 17, we saw how to configure GCBVs using attributes or the most basic of methods. In this chapter, we took the idea a step further. We’ve overridden methods, defined our own, and created our own GCBVs thanks to the base and mixin classes provided by Django.

At the end of the day, all of these classes are just Python classes. They’re not magic in any way. They are daunting to beginners only because of all of the overhead it takes to learn how they work, and finding the right method to override can be time consuming. The easiest part is writing the code, once you understand what you’re changing.

GCBVs are powerful, and once you know them, they can be instrumental in building a website quickly and efficiently. ...

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.