mirumee/django-offsite-storage

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

django-offsite-storage

Cloud static and media file storage suitable for app containers

Installation

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.

Amazon S3

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).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.