Hi all,

There is a lot of debate on whether there is a real future for the Django
CBVs (class based views). Personally, I find them tedious, and just wanted
a way to keep my views clean.

So, here is a really minimalistic way of having class based views, without
the fuss.

http://djangosnippets.org/snippets/2814/

This is a fork from:

http://stackoverflow.com/questions/742/class-views-in-django
http://djangosnippets.org/snippets/2041/

My thanks to eallik for his initial post on stackoverflow for this.

Personally I think Django's CBVs should offer a really minimalistic base
like this, as well as the existing CBV stuff already in the core - so as to
not force people into needing to learn an entirely new way of doing things,
but at the same time allowing them to reap some of the benefits of using
callable classes as views.

Any thoughts?

Cal

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to