Backends

AutoConnectS3Boto3Storage

This backend allows you to store static files using S3 without requiring you to set AWS_ACCESS_KEY_ID and AWS_SECRET_KEY in your project settings.

To use this backend, in your settings.py, set:

DEFAULT_FILE_STORAGE = 'storages_ec2.backends.AutoConnectS3Boto3Storage'

To allow the collectstatic command to store static files in S3, set:

STATICFILES_STORAGE = 'storages.ec2.backends.AutoConnectS3Boto3Storage'

The available configuration options can be viewed at the django-storages documentation.