On Wed, Sep 12, 2012 at 11:58 AM, Cal Leeming [Simplicity Media Ltd] <cal.leem...@simplicitymedialtd.co.uk> wrote: > So, here is a really minimalistic way of having class based views, without > the fuss. > > http://djangosnippets.org/snippets/2814/
looks nice. i like that it respects the idea that views in Django are just callables that take a reques (plus optional extra params) and return a response. to get inheritance, just make callable objects and spread functionality as desired. the generic view functions are good for prototyping, but soon you have to replace with your own, which is not difficult. the problem with generic CBV is that they try to factorize every feature so thinly that the inheritance becomes an unholy mess. any simplification would either reduce functionality, or make some features harder to replace, so there doesn't seem to be a way out... apart from not using them. -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.