Name: django-offsite-storage
Owner: Mirumee Labs
Description: Cloud static and media file storage suitable for app containers
Created: 2015-02-27 11:24:24.0
Updated: 2018-01-18 09:41:30.0
Pushed: 2016-04-27 12:31:58.0
Homepage: null
Size: 14
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Cloud static and media file storage suitable for app containers
Install the package via pip
:
pip install django-offsite-storage
Then add 'offsite_storage'
to your INSTALLED_APPS
just before 'django.contrib.staticfiles'
.
django-offsite-storage
overrides default collectstatic
command to exclude unnecessary files (less
, scss
) from the process.
Set following settings in your project's settings:
If you intend to use an external storage for your media files
, set the following settings:
In the case when you use a different s3 account for your media files, set the following settings:
To force boto to use a particular S3 host set AWS_S3_ENDPOINT (default is s3.amazonaws.com
).