django-boto:通过«boto»模块将Django与Amazon服务集成(https:github.combotoboto)

时间:2021-03-01 17:06:36
【文件属性】:
文件名称:django-boto:通过«boto»模块将Django与Amazon服务集成(https:github.combotoboto)
文件大小:11KB
文件格式:ZIP
更新时间:2021-03-01 17:06:36
Python Django的博托 是通过模块将Django与服务集成的实现。 安装 安装: easy_install django-boto 或者: pip install django-boto 配置 DEFAULT_FILE_STORAGE 能不能作为,因为默认的文件存储系统path尚未实现,但你仍然可以通过S3Storage对象作为存储选项的FileField : from django.db import models from django_boto.s3.storage import S3Storage s3 = S3Storage() class Car(models.Model): ... photo = models.ImageField(storage=s3) 其他settings.py选项 AWS_ACCESS_KEY_ID (默认文件存储使用是必需的)
【文件预览】:
django-boto-master
----setup.py(3KB)
----.gitignore(74B)
----requirements.txt(48B)
----MANIFEST.in(73B)
----CHANGELOG.md(2KB)
----setup.cfg(26B)
----LICENSE.txt(1KB)
----README.md(4KB)
----django_boto()
--------__init__.py(48B)
--------models.py(0B)
--------s3()
--------settings.py(568B)
--------tests.py(2KB)
----.editorconfig(566B)

网友评论