Class-Based Views: A DRY approach to view logic in Django


Details
Class-Based Views (CBVs) provide incredible flexibility and re-usability at the cost of simplicity. This talk will attempt to demystify this essential tool to allow you write your own CBVs and manipulate the generic CBVs to do whatever you want.
First we'll skim some basics of object inheritance in Python and go over how this applies to CBVs. Then we'll take a no-magic look at how calls to a CBV happen with a simple "Hello, World!" example. Next we'll touch on some of the generic views and show how to bend them to your will. Finally we'll go over Mixins and CBV-related tools and talk about how to reuse logic across views.
Ethan Soergel is a software engineer at Dimagi who has also worked as a freelance Django developer. He is a CodeRaising mentor and enjoys teaching. After forcing himself to understand how they worked, Ethan developed an appreciation for the power of CBVs that he's eager to spread.
Drinks sponsored by Solano Labs:
http://photos1.meetupstatic.com/photos/event/b/a/7/e/600_295847742.jpeg

Class-Based Views: A DRY approach to view logic in Django