Hi Julian. My 2 cents. What you want is:
urlpatterns = patterns('', url_fallthrought(r'^(?P<slug>[-\w]+)$', views=[(ProductView.as_view(), CategorView.as_view(), OccasionView.as_view())], name="my_super_url"),) But you know that we don't have it. To make it works you will need to do some loop on views and answer with first that not raises 404, and than return it response. To be better you just run get_object() of view and after return get() or post(). It should be done on object (wrapper view?) that url_fallthrought returns. This will be very very similar to what you will do if use a wrapper view... to not say same code. This functionality will be used mostly by Django based CRMs, Blogs and E-commerce solutions, lot of people of course, but in my opinion is so simple to do that don't need to be in Django itself. Att, Felipe 'chronos' Prenholato. Linux User nÂș 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/3/19 Adrian Holovaty <adr...@holovaty.com> > On Mon, Mar 18, 2013 at 10:23 AM, julianb <julian....@gmail.com> wrote: > > Well, at the moment, as far as I am aware, you can't. The first URL will > > match everything all the time, not giving the other views a chance to > kick > > in. > > > > So I propose some kind of URL fallthrough. The view could do > > > > raise UrlNotMatched > > > > and the dispatcher goes to the next possible matching view. > > > > Would that be good? Any thoughts? > > Hi Julian, > > I'd rather not add this to the framework, as it's already possible > with a "wrapper" view (as others have suggested). And on a more > theoretical level, it introduces more coupling between URL patterns > and views. > > Adrian > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at http://groups.google.com/group/django-developers?hl=en > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.