django.py 文件源码

python
阅读 13 收藏 0 点赞 0 评论 0

项目:infiblog 作者: RajuKoushik 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号