For what it's worth I'd be against this proposal as it stands. * I haven't seen anything anything that convinces me that a single wrapping view isn't a reasonable alternative in the examples cited. * A `UrlNotMatched` exception sounds like the potential source of incredibly non-obvious bugs and surprising behavior. * Allow a single HTTP call to end up calling into multiple views just seems like it would a fundamentally bad design decision.
I really don't see the trade-off of allowing this type of behavior to be worth the cost of breaking the current mental model of what a view is and does. Just my personal opinion of course :) Tom On Tuesday, 26 March 2013 17:49:07 UTC, Val Neekman wrote: > > +1 here! > > It might also be a great feature to run the 404 through before sending > that email out. > A replacement and/or complement to IGNORABLE_404_URLS > > Val > > > On Tue, Mar 26, 2013 at 1:25 PM, Loic Bistuer > <loic.b...@sixmedia.com<javascript:>> > wrote: > > +1 for me. > > > > Having a catchall view under a single URL pattern is a tightly coupled > > system, more so than allowing independent views to "test the water". > > > > Django core relies on middleware hacks because the URL dispatcher is > missing > > this very feature. Having this in core would allow a cleaner > implementation > > of the fallback mechanisms in contrib.flatpages and contrib.redirects. > > > > -- > > Loic > > > > On Mar 19, 2013, at 11:18 PM, Adrian Holovaty > > <adr...@holovaty.com<javascript:>> > wrote: > > > > 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. > > > > > > -- > > 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-develop...@googlegroups.com <javascript:>. > > To post to this group, send email to > > django-d...@googlegroups.com<javascript:>. > > > 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.