Loading...

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

2,414 views

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Oct 25, 2013

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.

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...