Main URL/Paths Settings¶
MEDIA_ROOT¶
Warning
Will be removed with version 3.6.0. Since 3.4, MEDIA_ROOT is defined with your storage engine.
The absolute path to the directory that holds the media-files you want to browse:
MEDIA_ROOT = getattr(settings, "FILEBROWSER_MEDIA_ROOT", settings.MEDIA_ROOT)
MEDIA_URL¶
Warning
Will be removed with version 3.6.0. Since 3.4, MEDIA_URL is defined with your storage engine.
URL that handles the media served from MEDIA_ROOT:
MEDIA_URL = getattr(settings, "FILEBROWSER_MEDIA_URL", settings.MEDIA_URL)
DIRECTORY (relative to storage location)¶
Main FileBrowser Directory. Leave empty in order to browse all files and folders within a storage location:
DIRECTORY = getattr(settings, "FILEBROWSER_DIRECTORY", 'uploads/')
You can override this setting on a per–site basis:
from filebrowser.sites import site
site.directory = "uploads/"