Re: Django Middleware Architecture Proposal

2013-11-28 Thread Anssi Kääriäinen
There was some discussion about call-through middlewares recently. The most popular idea was to allow wrapping urls with decorators. This way it would be possible to apply any decorator you want to only part of your views. If you do it on root urls level, then you have something like INNER_DISPA

Re: Django Middleware Architecture Proposal

2013-11-27 Thread Stephen Brooks
Hi all, In the original post https://groups.google.com/d/topic/django-developers/eJFuiWdobbY/discussionI presented a problem with the current Django middleware archticture and how it can lead to "*leaks*" in the handling of responses and exceptions. I also proposed an alternative architecture i

Django Middleware Architecture Proposal

2013-11-27 Thread Stephen Brooks
Hi all, I'd like to get some discussion going on the subject of Django's middleware architecture. The current way middleware works provides a way for a developer to specify code executed at certain stages of the arrival of the request and the departure of the response from the system. This is do