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:
parent
c6ae0fa549
commit
cb2d8cd3a4
|
@ -19,14 +19,14 @@ class BaseHandler(object):
|
|||
]
|
||||
|
||||
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):
|
||||
"""
|
||||
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.core import exceptions
|
||||
|
|
Loading…
Reference in New Issue