diff --git a/django/contrib/staticfiles/handlers.py b/django/contrib/staticfiles/handlers.py index 0c85c1ce40..95466355a4 100644 --- a/django/contrib/staticfiles/handlers.py +++ b/django/contrib/staticfiles/handlers.py @@ -57,9 +57,6 @@ class StaticFilesHandler(WSGIHandler): try: return self.serve(request) except Http404 as e: - if settings.DEBUG: - from django.views import debug - return debug.technical_404_response(request, e) return response_for_exception(request, e) return super().get_response(request)