Storage settings for static and media files.
Bases: common_configs.storage.storage.SimpleStorage
Enables django-compress static files finder
Env variable: DJANGO_STATICFILES_FINDERS
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-STATICFILES_FINDERS
Bases: common_configs.services.aws.AWS, common_configs.storage.storage.BaseCompressStorage
S3 AWS based storage settings configured for use with django_compressor.
For more info see:
Env variable: DJANGO_DEFAULT_FILE_STORAGE
https://docs.djangoproject.com/en/dev/ref/settings/#default-file-storage
Env variable: DJANGO_STATICFILES_STORAGE
https://docs.djangoproject.com/en/dev/ref/settings/#staticfiles-storage
Env variable: DJANGO_COMPRESS_STORAGE
http://django-compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_STORAGE
Env variable: AWS_STORAGE_BUCKET_NAME
S3 bucket name for stored files
Env variable: DJANGO_AWS_DEFAULT_ACL
Default S3 ACL settings
Env variable: AWS_S3_FILE_OVERWRITE
Overwrite files in S3 storage
Env variable: AWS_S3_SECURE_URLS
Use secure SSL urls for serving objects from S3
Env variable: AWS_S3_CUSTOM_DOMAIN
Use custom S3 domain
Env variable: AWS_CLOUDFRONT_URL
CloudFront endpoint url when serving files from CDN
Env variable: AWS_QUERYSTRING_AUTH
Generate S3 auth querystring
Env variable: AWS_IS_GZIPPED
Compress uploaded content
Env variable: AWS_PRELOAD_METADATA
Preload S3 metadata
Env variable: AWS_GZIP_CONTENT_TYPES
Compressable content types (if AWS_IS_GZIPPED flag is set)
S3 calling format (SubdomainCallingFormat).
Defines far-future expires (2020-12-31) and cache control (public, max-age=604800, must-revalidate) headers for served files.
Base url for static files
Base url for media files
Appends collectfast to list of INSTALLED_APPS.
Defines S3 bucket subdirectory storage for static and media files that utilize django-storages and provides storage backends that are compatible with Django Compressor.
Remember to configure and include Amazon AWS settings config in your settings as well enable user environment variables in the Slug compilation build phase, so the storage backend is able to connect to S3 when executing collectstatic and compress commands:
Note
Django on Heroku: installing NodeJS and Less for static assets compilation and Django and Heroku Cookbook provides more information and build scripts for automatic static files compression during deployment.
Subclasses storages.backends.s3boto.S3BotoStorage and sets base location for files to /static.
Subclasses storages.backends.s3boto.S3BotoStorage and sets base location for files to /media.
S3 storage backend that saves the files both remotely and locally.
See http://django_compressor.readthedocs.org/en/latest/remote-storages/
Mix of the S3StaticStorage and CachedS3BotoStorage, saves files in /static subdirectory