def find_file(self, url):
if self.use_finders and url.startswith(self.static_prefix):
path = finders.find(url[len(self.static_prefix):])
if path:
try:
return self.get_static_file(path, url)
except IsDirectoryError:
return None
return super(DjangoWhiteNoise, self).find_file(url)
评论列表
文章目录