DjangoCon US 2015 - Django Views: Functions, Classes, and Generics by Andrew Pinkham
4,762 views · Published 18 September 2015 · 39:17 · Indexed 20 September 2026
Channel: Confreaks · 2015 · Science & Technology
Django Views: Functions, Classes, and Generics The goal of this talk is to make views and HTTP as clear as daylight. This talk is for you if you're confused about: how function views compare to class-based views when to use generic class-based views- the difference between class-based views and generic class-based views- or when to use any of these This talk will start with an introduction to HTTP and how Django handles HTTP. We will then look at each kind of view in Django, focusing on how each works and why Django implements it that way. This will allow us to look at the advantages and shortcomings of each type of view. Finally, with a full understanding of Django views, we will be able to easily determine when to use each type of view. Table of Contents: What is HTTP, anyway? Django's HTTP Request/Response Cycle What is a callable? History of View Functions Functions Generics Classes and Generics View Functions (or How I Learned to Stop Worrying and Love Non-Compliance) Class Based Views (or As DRY as the Sahara) Generic Class Based Views (or Oh For The Love of Graph Theory) Enhancing Views (or 1-Size fits no-one) Fixing Your Views When to Use What
More from this channel
-
32:59
Test-driving GUIs (with RubyCocoa) by Brian Marick
-
29:02
Powerful Interfaces by Caike Souza
-
33:11
Testing Best Practices, or The Five Habits of Highly Effective Tests by Noel Rappin
-
14:22
Prying into your app's private life by Corey Woodcox
-
22:18
Continuous Deployment
-
39:35
Rocky Mountain Ruby 2012 - Growing Developers - Panel
-
40:41
Rocky Mountain Ruby 2012 - Refactoring from Good to Great by Ben Orenstein
-
1:00:03
Ruby Conference 2007 Behaviour Driven Development with RSpec by Dave Astels, David Chelimsky