From 35397fa7238f7863f6bb8c3e7c8f2ccc8ba63ba4 Mon Sep 17 00:00:00 2001 From: Joem Elias Sanez <61286823+israelias@users.noreply.github.com> Date: Fri, 3 Jan 2025 10:43:50 +0100 Subject: [PATCH] fix media root to be on local scope --- backend/core/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/settings.py b/backend/core/settings.py index 68db430..a1b45ff 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -202,9 +202,9 @@ STATIC_URL = "/staticfiles/" STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") MEDIA_URL = "/media/" - MEDIA_ROOT = str(BASE_DIR / "media/") STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),) +MEDIA_ROOT = os.path.join(BASE_DIR, "media") # Default primary key field type # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field