From f947799010b91554af4154a06b5cee51b0c9c61a Mon Sep 17 00:00:00 2001 From: kimachinkiy <48508661+kimachinskiy@users.noreply.github.com> Date: Wed, 4 Oct 2023 08:20:11 +0300 Subject: [PATCH] Update --- forum/settings.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/forum/settings.py b/forum/settings.py index c27726ab3..65fc162c5 100644 --- a/forum/settings.py +++ b/forum/settings.py @@ -149,14 +149,14 @@ # 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/' - -STATICFILES_DIRS = ( - os.path.join(BASE_DIR, 'public/static'), -) +STATIC_URL = 'static/' +STATIC_ROOT = '/home/forum/app/public/static/' +MEDIA_URL = 'media/' +MEDIA_ROOT = '/home/forum/app/public/media/' + +# STATICFILES_DIRS = ( +# os.path.join(BASE_DIR, 'public/static'), +# ) # Default primary key field type # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field