collectstatic.py 文件源码

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

项目:django-cloudinary-storage 作者: klis87 项目源码 文件源码
def copy_file(self, path, prefixed_path, source_storage):
        """
        Overwritten to execute only with --upload-unhashed-files param or StaticCloudinaryStorage.
        Otherwise only hashed files will be uploaded during postprocessing.
        """
        if (settings.STATICFILES_STORAGE == 'cloudinary_storage.storage.StaticCloudinaryStorage' or
                self.upload_unhashed_files):
            super(Command, self).copy_file(path, prefixed_path, source_storage)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号