django-s3-storages-utils - 用于设置与django-storages一起使用的s3工具
项目描述
一个简单的应用程序,允许对django-storages提供的S3BotoStorage有更多的控制
它的使用相当简单。只需将以下内容放入您的设置中
# Store the static files in the directory `static` in the S3 bucket STATIC_S3_STORAGE_LOCATION = 'static' # Store the media files in the directory `media` in the S3 bucket MEDIA_S3_STORAGE_LOCATION = 'media' DEFAULT_FILE_STORAGE = 's3storagesutils.MediaCachedS3BotoStorage' STATICFILES_STORAGE = 's3storagesutils.StaticCachedS3BotoStorage' # If you're using compressor COMPRESS_STORAGE = STATICFILES_STORAGE
现在就这些了!
项目详情
关闭
django-s3-storages-utils-0.1.0.tar.gz的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | dae1a812ca487e8bab10171ba08c8ee02e578e4c527cf4a50cf6a57fdbd1d0d5 |
|
MD5 | fc39f2ece5d51bd8673a65c55329e41e |
|
BLAKE2b-256 | c9479f4879c229d5c16d60126acf046560d58227f6653e01472f3fabf1766204 |