They have a default list for the underlying Django middleware:
MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', )
Any others that you create or receive from third parties can be added at the end of the tuple above. The Django book also mentions that when you request to view an order from CommonMiddleware to AuthenticationMiddleware and finally to your view. The reverse response reverses the order from AuthenticationMiddleware to CommonMiddleware . Here's the doc for him.
In response to the comment:
After flashing Django tickets, it seems like it was a problem with the Django dev community, and I don't think there is a final answer to it yet. Here is a ticket that contains a discussion along with the part where Jacob closed it. You might want to try this problem again as a Django ticket to get an official response from the developer.
source share