storage.py 文件源码

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

项目:tabmaster 作者: NicolasMinghetti 项目源码 文件源码
def __init__(self, location=None, base_url=None, *args, **kwargs):
        if location is None:
            location = settings.STATIC_ROOT
        if base_url is None:
            base_url = settings.STATIC_URL
        check_settings(base_url)
        super(StaticFilesStorage, self).__init__(location, base_url,
                                                 *args, **kwargs)
        # FileSystemStorage fallbacks to MEDIA_ROOT when location
        # is empty, so we restore the empty value.
        if not location:
            self.base_location = None
            self.location = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号