diff options
| author | Claude Paroz <claude@2xlibre.net> | 2018-06-05 11:58:38 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-06-12 09:26:59 -0400 |
| commit | add57c7e27fa36be8ebec4df4a2cbad81e318070 (patch) | |
| tree | 0946b8dd15854e08764c92075462faa58a5ed55d | |
| parent | c7d59825d738650e87173d4f9c8781b2e8b8c0c5 (diff) | |
[2.1.x] Refs #29353 -- Removed duplicated logic in StaticFilesHandler.get_response().
Thanks Sergey Fursov for spotting the issue.
Backport of 1fac9740675b8dbea3952b58102a643c67e951e4 from master
| -rw-r--r-- | django/contrib/staticfiles/handlers.py | 3 |
1 files changed, 0 insertions, 3 deletions
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) |
