
Django Unicorn - Adam Hill
Django Chat
00:00
Is There More That's More Dad on That?
I'm a more or less class base view man. I'll write a function base view from time to time, but more or less I use a class base view. And so the way that I tend to do that now is I have this middleware and it's really simple. It just looks at the method and then adds a property onto the request object which is post is get is head. The other thing that people seem to like with class base views is like a having a method explicitly for get and for post. So you kind of split those two pieces. When you get to if get if request is get or if request is post, it's sort of out denting because you
Play episode from 52:34
Transcript


