Re: HowTo: Django view as a class

2008-08-28 Thread zvoase
define a __call__ method on the class. Of course, this doesn't > > have to do anything with RESTfulness. > > > V > > > On Aug 26, 3:07 am, zvoase <[EMAIL PROTECTED]> wrote: > > > Hey Django users, just a quick suggestion which might help a few > > &g

HowTo: Django view as a class

2008-08-25 Thread zvoase
Hey Django users, just a quick suggestion which might help a few people. I have come up with a way of writing a Django view as a class. I've done this as part of an effort to write easier-to-understand RESTful apps, as this allows the grouping of similar views as different types of operation on a