Django comes with a list of built-in middleware, but if one wants to use all (or most) of them, he has to work through tons of docs in order to get the right sorting in the settings.py file.
Is there an optimal default order of all built-in Django 1.1 middleware classes? I.e., something to copy'n'paste into settings.py:
MIDDLEWARE_CLASSES = (
# perfect order here please ;-)
)
Alternative answer: Are there multiple possible orderings and what would be the difference?
By the way: The order is significant, but I'm only aware of some of the default dependencies, like SessionMiddleware before AuthenticationMiddleware.