Skip to main content

django-s3-storages-utils - Utilities for setting up s3 for use with django-storages

Project description

A simple app that allows a bit more control over the S3BotoStorage provided by django-storages

It’s use is fairly simple. Just put this in your settings:

# 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

That’s all for now!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-s3-storages-utils-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file django-s3-storages-utils-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-s3-storages-utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dae1a812ca487e8bab10171ba08c8ee02e578e4c527cf4a50cf6a57fdbd1d0d5
MD5 fc39f2ece5d51bd8673a65c55329e41e
BLAKE2b-256 c9479f4879c229d5c16d60126acf046560d58227f6653e01472f3fabf1766204

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page