django-s3-storages-utils

  102 downloads
0.1.0 MIT/X Consortium License    
  not rated
Tools for setting up S3 to be used with django-storages

description

download

specifications

django-s3-storages-utils is a Django app designed to allow users to control S3BotoStorage, provided by the django-storages app.

The package is very easy to setup. All you have to do is to put the following code 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
READ MORE   
Last updated on September 13th, 2012

0 User reviews so far.

SUBMIT