没有项目描述

django_openS3的Python项目详细描述


django_opens3

Documentation Statustests

用于django的opens3包装器。

安装

$ pip install django_openS3

要安装最新的开发版本:

$ git clone git@github.com:logston/django_openS3.git
$ cd django_openS3
$ python setup.py install

用法

# Add django_openS3 to your project's list of installed apps.
INSTALLED_APPS = [
    ...
    'django_openS3',
    ...
]

# Set your desired bucket and authentication/authorization info.
AWS_STORAGE_BUCKET_NAME = os.environ['AWS_S3_BUCKET']
AWS_ACCESS_KEY_ID = os.environ['AWS_S3_ACCESS_KEY']
AWS_SECRET_ACCESS_KEY = os.environ['AWS_S3_SECRET_KEY']

# Tell django to use django_openS3 for storing static files and media.
DEFAULT_FILE_STORAGE = 'django_openS3.storage.S3MediaStorage'
STATICFILES_STORAGE = 'django_openS3.storage.S3StaticStorage'

# Optionally set the directories in which static and media
# files will be saved to. Defaults are listed below.
S3_STATIC_DIR = '/static/'
S3_MEDIA_DIR = '/media/'

错误跟踪程序

请报告错误!啊! Report bugs at django_openS3’s GitHub repo

其他文档

更多文档可以在Read the Docs上找到。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在ArrayList中比较数字   java在Kotlin中使异步调用同步   让“Scala编程”junit示例在IntelliJ中工作的java问题   java Servlet侦听器未在ContextListener中设置属性   将Microsoft SQL Server数据库连接到我的Java项目   加载资源时出现java“需要注册工厂”异常   java如何使用POI检查excel中的重复记录?   java如何更改机器生成的代码   java如何确保重写的方法是同步的   用Spring编写Hibernate时的java XML奥秘   java管理mysql数据库中存储的用户权限   java如何运行。来自Javascript的jar方法   java我想在Web应用程序中进行身份验证&对桌面应用程序使用相同的凭据。我该怎么做?