Background Image
Table of Contents Table of Contents
Previous Page  450 / 478 Next Page
Information
Show Menu
Previous Page 450 / 478 Next Page
Page Background

Lessons Learned from CBGVs

Class-based generic views can do anything

It might not always be clear what’s going on, but you can do just about anything

with class-based views.

Single-assertion unit tests help refactoring

With each unit test providing individual guidance on what works and what doesn’t,

it’s much easier to change the implementation of our views to using this funda‐

mentally different paradigm.

422

|

Appendix B: Django Class-Based Views