django在URL中访问上传到APP目录外的文件

url(r'upload/(?P<path>.*)', serve, {'document_root': settings.UPLOAD_DIR})

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注