Appendix C. Generic View Reference

Chapter 10, Generic Views, introduced generic views but left out some of the gory details. This appendix describes each generic view along with a summary of options each view can take. Be sure to read Chapter 10, Generic Views, before trying to understand the reference material that follows. You might want to refer back to the Book, Publisher, and Author objects defined in that chapter; the examples that follow use these models. If you want to dig deeper into more advanced generic view topics (like using mixins with the class-based views), see the Django Project website at https://docs.djangoproject.com/en/1.8/topics/class-based-views/.

Common arguments to generic views

Most of these views take a large number ...

Get Mastering Django: Core 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.