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