Use an FS object for Django File Storage

This module exposes the class “FSStorage”, a simple adapter for using FS objects as Django storage objects. Simply include the following lines in your settings.py:

DEFAULT_FILE_STORAGE = fs.expose.django_storage.FSStorage
DEFAULT_FILE_STORAGE_FS = OSFS('foo/bar')  # Or whatever FS
class fs.expose.django_storage.FSStorage(fs=None, base_url=None)

Expose an FS object as a Django File Storage object.

  • fs – an FS object
  • base_url – The url to prepend to the path