Changed order MIDDLEWARE_CLASSES.