I'd really like to be able to define middlewares that actually work in a well defined and easy to use way. Currently, there is no guarantee(!) that either process_exception or process_response gets called after process_request has been called for given middleware, and this makes it impossible to implement a transaction middleware purely as a middleware.
An idea... Would investigating and implementing better middlewares (or urlpattern wrappers) make for a good GSoC project? Maybe the "wrap URLs" approach could be part of the URL resolve refactoring GSoC project? - Anssi On Wed, Feb 4, 2015 at 1:52 PM, Florian Apolloner <f.apollo...@gmail.com> wrote: > > > On Wednesday, February 4, 2015 at 10:53:28 AM UTC+1, guettli wrote: >> >> Will a patch to provide settings.MIDDLEWARES_INSIDE_TRANSACTION be >> accepted? > > > Most likely not since one of the reasons why @atomic isn't applied via a > middleware (which would then include the middlewares after it) is that the > way middlewares currently work don't allow the usage of atomic. That said if > you have a working patch we'd certainly look at it. > > Cheers, > Florian > > -- > 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 http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/49f603d3-af82-48e7-845d-50f4b8e7a530%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- 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 http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CALMtK1HQuPx65-txHRUD92SqezN7HO%3D0a2QgdSquzVRyOKuJwQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.