It seems to me that Django and Pylons have different ideas about how middleware should work. I like that Pylons follows the standardized PEP 333 , but Django seems to be more widely used. Is it possible to write middleware for use in both?
The project, which includes the aforementioned middleware, migrates a set of security tools called ESAPI from Java to Python. Since Java is so standards-oriented, it's pretty easy to become agnostic. In Python, different structures have different ideas about how basic things like HttpRequest objects and middleware work, so this seems more complicated.
Apparently, new users cannot post more than one hyperlink. See the links below for information on the Django and Pylons middleware.
source
share