django-upload-files-straight-to-s3:有关如何将前端文件直接直接上传到S3而不使用django发送到服务器的示例项目

时间:2021-05-25 23:49:18
【文件属性】:
文件名称:django-upload-files-straight-to-s3:有关如何将前端文件直接直接上传到S3而不使用django发送到服务器的示例项目
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-25 23:49:18
Python 从浏览器上传文件到S3 这是帖子的示例项目 pip install -r requirements.txt python manage.py migrate python manage.py bower install 如果你想测试它在本地主机上设置S3_DEBUG到True在你的settings.py ,并创建一个名为.env ,内容如下: AWS_ACCESS_KEY_ID= ' ' AWS_SECRET_ACCESS_KEY= ' ' AWS_STORAGE_BUCKET_NAME= ' ' 确保您的存储桶的CORS设置与博客文章中的示例一样。
【文件预览】:
django-upload-files-straight-to-s3-master
----.gitignore(101B)
----requirements.txt(124B)
----blog_example_heroku_s3()
--------urls.py(1KB)
--------__init__.py(0B)
--------wsgi.py(421B)
--------settings.py(4KB)
----README.md(663B)
----example()
--------templates()
--------urls.py(359B)
--------__init__.py(0B)
--------views.py(713B)
--------static()
--------models.py(353B)
--------custom_storages.py(580B)
--------admin.py(63B)
--------forms.py(2KB)
--------endpoints.py(1KB)
--------tests.py(60B)
--------context_processors.py(177B)
----manage.py(265B)

网友评论