In Django, there is the idea of Middleware. It consists of changing the requests and passing it down to the next middleware and so on, and doing the reverse with the responses.
Are middlewares implementation of the design pattern Decorator? Are they a particular case of the decorator? What are the differences between them?
Also, what is the difference between the implementation of Decorator in Django and the GoF description of it?