(self, request)
| 1692 | return super().get_response(request) |
| 1693 | |
| 1694 | def serve(self, request): |
| 1695 | os_rel_path = self.file_path(request.path) |
| 1696 | os_rel_path = posixpath.normpath(unquote(os_rel_path)) |
| 1697 | # Emulate behavior of django.contrib.staticfiles.views.serve() when it |
| 1698 | # invokes staticfiles' finders functionality. |
| 1699 | # TODO: Modify if/when that internal API is refactored |
| 1700 | final_rel_path = os_rel_path.replace("\\", "/").lstrip("/") |
| 1701 | return serve(request, final_rel_path, document_root=self.get_base_dir()) |
| 1702 | |
| 1703 | def __call__(self, environ, start_response): |
| 1704 | if not self._should_handle(get_path_info(environ)): |
no test coverage detected