I'm also in favour of simplifying away process_view . And having worked with a multi-domain site that altered request.urlconf in a middleware, I know the problems it can bring.
Carl's point about modifying request.path is interesting - if we're looking to allow modifying it in the resolver step but not the middleware, would we "seal" the request to error if it gets changed later? On Wed, 16 May 2018 at 18:49, Florian Apolloner <f.apollo...@gmail.com> wrote: > Hi Carl, > > On Wednesday, May 16, 2018 at 5:58:02 AM UTC+2, Carl Meyer wrote: >> >> I'm not sure this part is feasible. It's an intentional part of >> middleware design AFAIK (and useful) that middleware can modify >> request.path and have this modification respected in view resolution. >> > > my proposed urlresolver_factory takes the request as argument and should > therefore allow for anything that the middleware would allow too -- are > there any specific usecases you have in mind that would require a > middleware? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/3f216c46-c48d-4ff1-bd6a-dcc2fb090c43%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/3f216c46-c48d-4ff1-bd6a-dcc2fb090c43%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM0AvzAsyDO9Wzz7aGe-b2SEd6jjxQFot54GDXCnD-hohg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.