From 3f568d804ac948a9b6913149e75211734e6154ae Mon Sep 17 00:00:00 2001 From: Ndibe Raymond Olisaemeka Date: Sun, 31 Dec 2023 01:56:33 +0000 Subject: [PATCH] add MEDIA_URL and MEDIA_ROOT to settings.py (#1075) issue: #943 Signed-off-by: Ndibe Raymond Olisaemeka Co-authored-by: Ndibe Raymond Olisaemeka --- zubhub_backend/zubhub/zubhub/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zubhub_backend/zubhub/zubhub/settings.py b/zubhub_backend/zubhub/zubhub/settings.py index 866710038..69e4e627a 100644 --- a/zubhub_backend/zubhub/zubhub/settings.py +++ b/zubhub_backend/zubhub/zubhub/settings.py @@ -270,6 +270,9 @@ STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'), ] STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') +MEDIA_URL = '/api/media/' +MEDIA_ROOT = os.path.join(BASE_DIR, 'media') + STATICFILES_FINDER = [ "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder"