【发布时间】:2017-03-10 08:25:55
【问题描述】:
我已使用 Django-storages 成功地将 Word 文档存储到 S3。
class Document(TitleSlugDescriptionModel, TimeStampedModel):
document = models.FileField(upload_to=user_directory_path)
现在在 celery 任务中,我需要再次下载此文件以便在工作人员中进行进一步处理。
我需要从 URL 读取文件,然后显式创建本地副本,还是有什么方法可以使用 Django-storages 创建本地副本?
【问题讨论】:
标签: django python-django-storages