【发布时间】:2010-11-29 08:01:56
【问题描述】:
documents = models.FileField(upload_to=settings.FILE_PATH, verbose_name=
_('Attach Your Documents'), help_text=_('.pdf file not exceeding 5 mb.'),
null=True, blank=True)
通过这种方式,我正在为django admin 中的文件的upload 创建一个模型。现在我想在django admin 上单击save 时将此文件上传到S3。我应该在哪里将uploading 的方法写到 s3。我不明白。
【问题讨论】: