From ee4e2122ed81a66e2bd48fb09532ba5161cb87c6 Mon Sep 17 00:00:00 2001 From: CPABONG Date: Sun, 3 Aug 2025 13:16:54 +0900 Subject: [PATCH] Fix media file serving in B_main urls for production --- B_main/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/B_main/urls.py b/B_main/urls.py index 0150be3..8857691 100644 --- a/B_main/urls.py +++ b/B_main/urls.py @@ -16,5 +16,5 @@ urlpatterns = [ path('privacy-policy/', views.privacy_policy, name='privacy_policy'), ] -if settings.DEBUG: - urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file +# 미디어 파일 서빙 (개발 및 프로덕션 환경 모두) +urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file