Check if the path should be handled. Ignore the path if: * the host is provided as part of the base_url * the request's path isn't under the media path (or equal)
(self, path)
| 1669 | super().__init__() |
| 1670 | |
| 1671 | def _should_handle(self, path): |
| 1672 | """ |
| 1673 | Check if the path should be handled. Ignore the path if: |
| 1674 | * the host is provided as part of the base_url |
| 1675 | * the request's path isn't under the media path (or equal) |
| 1676 | """ |
| 1677 | return path.startswith(self.base_url.path) and not self.base_url.netloc |
| 1678 | |
| 1679 | def file_path(self, url): |
| 1680 | """Return the relative path to the file on disk for the given URL.""" |
no outgoing calls
no test coverage detected