Thank you Florian and Carl for continuing the work on that topic. I like both the DEP as well as the example.
I would, however, include the exception handling in the examples provided in section "Specification" as that is an integral part of middlewares, too. Nitpicking, I would also name the settings variable MIDDLEWARES (i.e. plural) as it is a list of middlewares, not just one. /Markus On January 8, 2016 10:31:49 PM GMT+11:00, Curtis Maloney <cur...@tinbrain.net> wrote: >In general, I love it. > >It's MUCH simpler for people to write and comprehend... requires no >classes [but IMHO the callable class is "cleaner"] and allows for >configurable middlewares easily... > >I do wonder, though... how the anti-import-strings factions will >react... I'm sure it can, at least, support direct callables being in >the MIDDLEWARE list, not just strings? > >-- >Curtis > > >On 08/01/16 13:50, Carl Meyer wrote: >> Hi all, >> >> Back at the Django Under the Hood sprints in November, Florian and I >> started batting around some ideas for fixing some of the problems >with >> the existing middleware abstraction. Florian put together an initial >> pull request with a POC for some of those ideas. I've now updated the >> proposal (incorporating some implementation ideas from Pyramid's >> middleware equivalent) and written it up in the form of a DEP. You >can >> find the DEP at >> >> >https://github.com/django/deps/blob/master/draft/0005-rethinking-middleware.rst >> >> and I'm also pasting the full -- 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/24BD0937-9FB1-4D4F-9984-01B603A19B74%40markusholtermann.eu. For more options, visit https://groups.google.com/d/optout.