diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-05-07 17:25:05 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-05-08 09:26:13 +0200 |
| commit | 34f589ba88ae8ce7cf40c49e0e623f90cad2046d (patch) | |
| tree | fac969d9773d05c268efb291458f16ede5adfd09 | |
| parent | 6a92bcf55bb671c64562be05024a824674b4ceab (diff) | |
Moved unnecessarily nested import.
| -rw-r--r-- | django/contrib/staticfiles/handlers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/handlers.py b/django/contrib/staticfiles/handlers.py index 8618f0e28e..b0aa66036d 100644 --- a/django/contrib/staticfiles/handlers.py +++ b/django/contrib/staticfiles/handlers.py @@ -6,6 +6,7 @@ from django.contrib.staticfiles import utils from django.contrib.staticfiles.views import serve from django.core.handlers.exception import response_for_exception from django.core.handlers.wsgi import WSGIHandler, get_path_info +from django.http import Http404 class StaticFilesHandler(WSGIHandler): @@ -51,8 +52,6 @@ class StaticFilesHandler(WSGIHandler): return serve(request, self.file_path(request.path), insecure=True) def get_response(self, request): - from django.http import Http404 - try: return self.serve(request) except Http404 as e: |
