Chunk download: use the new sendfile to serve files.

This commit is contained in:
Tom Hacohen
2020-12-14 16:40:08 +02:00
parent a19a982b1c
commit 9559a0fd35
2 changed files with 6 additions and 9 deletions

View File

@@ -173,6 +173,10 @@ ETEBASE_API_AUTHENTICATORS = (
)
ETEBASE_CREATE_USER_FUNC = "django_etebase.utils.create_user_blocked"
# Efficient file streaming (for large files)
SENDFILE_BACKEND = "django_etebase.sendfile.backends.simple"
SENDFILE_ROOT = MEDIA_URL
# Make an `etebase_server_settings` module available to override settings.
try:
from etebase_server_settings import *