From 43d5af32d72d5f59de7f31698076becf2430ccaa Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sat, 17 Apr 2021 15:22:09 +0000 Subject: [PATCH] Fix sendfile settings * set SENDFILE_ROOT to the filesystem path for media, not the URL component * use the correct import path to the sendfile backend --- etebase_server/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etebase_server/settings.py b/etebase_server/settings.py index 80a6ee9..aa77461 100644 --- a/etebase_server/settings.py +++ b/etebase_server/settings.py @@ -166,8 +166,8 @@ if any(os.path.isfile(x) for x in config_locations): 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 +SENDFILE_BACKEND = "etebase_fastapi.sendfile.backends.simple" +SENDFILE_ROOT = MEDIA_ROOT # Make an `etebase_server_settings` module available to override settings. try: