Fixed #16399 -- Minor cleanup in core handler. Thanks, aaugustin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-07-04 16:20:16 +00:00
parent c6ae0fa549
commit cb2d8cd3a4
1 changed files with 2 additions and 2 deletions

View File

@ -19,14 +19,14 @@ class BaseHandler(object):
] ]
def __init__(self): def __init__(self):
self._request_middleware = self._view_middleware = self._response_middleware = self._exception_middleware = None self._request_middleware = self._view_middleware = self._template_response_middleware = self._response_middleware = self._exception_middleware = None
def load_middleware(self): def load_middleware(self):
""" """
Populate middleware lists from settings.MIDDLEWARE_CLASSES. Populate middleware lists from settings.MIDDLEWARE_CLASSES.
Must be called after the environment is fixed (see __call__). Must be called after the environment is fixed (see __call__ in subclasses).
""" """
from django.conf import settings from django.conf import settings
from django.core import exceptions from django.core import exceptions