parent
89a2216486
commit
cafb34963c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue