支持将图片直接上传到S3等图床(理论上支持所有的django-storage 支持的图床) #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
现在很多项目都会将静态文件和用户上传的文件放到图床上。
django-storage 是类似的需求下使用最多的django包。 这次更新主要是基于django-storage 实现了将图片直接上传到云端的功能,并没有更改太多的代码,只是如果启用图床功能则需要安装 django-storage。