From 342a96a0b9c4597d80c4fcb80bf58824f8363060 Mon Sep 17 00:00:00 2001 From: kimachinkiy <48508661+kimachinskiy@users.noreply.github.com> Date: Wed, 4 Oct 2023 08:14:26 +0300 Subject: [PATCH] Update --- forum/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/forum/settings.py b/forum/settings.py index 15c1b9b7f..c27726ab3 100644 --- a/forum/settings.py +++ b/forum/settings.py @@ -149,13 +149,13 @@ # https://docs.djangoproject.com/en/4.1/howto/static-files/ -STATIC_URL = 'static/' -STATIC_ROOT = os.path.join(BASE_DIR, 'public/static/') -MEDIA_URL = os.path.join(BASE_DIR, 'public/media/') -MEDIA_ROOT = 'media/' +STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'public/static') +MEDIA_URL = os.path.join(BASE_DIR, 'public/media') +MEDIA_ROOT = '/media/' STATICFILES_DIRS = ( - os.path.join(BASE_DIR, 'static'), + os.path.join(BASE_DIR, 'public/static'), ) # Default primary key field type