我们从Python开源项目中,提取了以下28个代码示例,用于说明如何使用django.conf.settings.STATICFILES_STORAGE。
def _setup(self): self._wrapped = get_storage_class(settings.STATICFILES_STORAGE)()
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)