Skip to main content

django-storages-redux extension to allow separate folders for media and static files

Project description

About

django-storage-folder is a small extension to the django-storages-redux (a python3 compatible fork of django-storages) project that allows you to specify different directories for storing media and static files.

It currently only supports the s3boto backend.

How To Use

  1. Set the static files or media files storage backend

  2. Set the static files or media files storage directory

Example

STATICFILES_STORAGE = 'storages_folder.backends.s3boto.StaticStorage'
STATICFILES_STORAGE_DIR = 'static'

MEDIAFILES_STORAGE = 'storages_folder.backends.s3boto.MediaStorage'
MEDIAFILES_STORAGE_DIR = 'media'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-storages-folder-0.1.3.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file django-storages-folder-0.1.3.tar.gz.

File metadata

File hashes

Hashes for django-storages-folder-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0579e9f0098b1e8fd05c863f9c9829fcb23de12bfc96f83133a36d24337069d4
MD5 7a5417d4221135edae42cecd52cf89f9
BLAKE2b-256 80b9d38e0ccac245c5661ac9f16ea049f06a69da4bf47c2afbde98b6bff96061

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page