Middleware order matters.
|Reported by:||Owned by:||Jacob|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It is clearly stated that the order, in which middlewares are added, is important, but nowhere to find in the doc what is the correct order. I have to go though all documentation in order to asure myself that I haven't broken anything.
I think page http://www.djangoproject.com/documentation/middleware/ lacks an example with MIDDLEWARE_CLASSES set to the list of middlewares, but ALL middlewares are specified in appropriate order, including django.contribs. Then, any one can get what the order should be, by looking at it.