2010-11-29 5 views
1
 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에이 파일을 업로드하고 싶습니다. 어디서 x3x13에 대한 메서드를 작성해야합니까? 나는 아무 생각도 얻지 않고있다.장고 관리자를 통해 업로드하는 방법

답변

3

시도해 볼 수 있습니다. django-storages

+0

그 모듈은 환상적입니다. –

관련 문제