Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meshy/django-file-storage

Configure `DEFAULT_FILE_STORAGE` with environment variables. Inspired by Kenneth Reitz's dj-database-url.
https://github.com/meshy/django-file-storage

Last synced: about 2 months ago
JSON representation

Configure `DEFAULT_FILE_STORAGE` with environment variables. Inspired by Kenneth Reitz's dj-database-url.

Awesome Lists containing this project

README

        

django-file-storage
~~~~~~~~~~~~~~~~~~~

Usage
-----

Configure your file storage in ``settings.py``::

DEFAULT_FILE_STORAGE = django_file_storage.config()

Looks for ``DEFAULT_FILE_STORAGE`` in your environment variables, and falls
back to django's default. The environment variable must be one of those defined
in ``backends``.