On 26 tammi, 05:04, Bertrand Bordage <[email protected]> wrote: > Hi, > > This is my first message here, though I am using Django every day since two > years. > > Yesterday I read a Ruby on Rails tutorial and this gave me an idea of what > could IMO be a nice feature: viewsets. > I therefore started a tiny project, > django-viewsets<https://github.com/BertrandBordage/django-viewsets> > (djangonauts > have weird reflexes… ^^). *Everything is explained there.* > > What do you think? Could this be an interesting feature? “The next level > of class-based views”? A *contrib* application?
I do like the idea. I have actually implemented a different version of the same idea: https://github.com/akaariai/multiviews. The multiviews uses some meta-programming to autogenerate the urls, and it doesn't use Django's class based views at all. The code is just a proof of concept. But, the barrier for additions to contrib/core is high. At least, the addition proposed should be wanted by a substantial portion of Django users, and it should be obvious that it is the way to implement the feature. For this feature there are multiple ways to implement viewsets / multiviews and it isn't at all obvious if one of the ways is better than the rest. Likely different use cases warrant different implementations. - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
