diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 8eddad0e62..d8f4b446b7 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -9,7 +9,7 @@ from django.urls import get_resolver, set_urlconf from django.utils.log import log_response from django.utils.module_loading import import_string -from .exception import convert_exception_to_response, get_exception_response +from .exception import convert_exception_to_response logger = logging.getLogger('django.request') @@ -68,9 +68,6 @@ class BaseHandler: view = transaction.atomic(using=db.alias)(view) return view - def get_exception_response(self, request, resolver, status_code, exception): - return get_exception_response(request, resolver, status_code, exception, self.__class__) - def get_response(self, request): """Return an HttpResponse object for the given HttpRequest.""" # Setup default url resolver for this thread