Skip to content

Commit

Permalink
Fix: 운영 환경에서 static resource 접근 할 때 404 에러가 발생하는 이슈 수정 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungmir authored Feb 25, 2025
1 parent 43e310c commit 34edbb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
"""

from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path

urlpatterns = [
path("admin/", admin.site.urls),
path("api/faqs/", include("faq.urls")), # 앱의 urls.py를 포함
path("api/merchandise/", include("merchandise.urls")),
*static(settings.STATIC_URL, document_root=settings.STATIC_ROOT),
*static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT),
]

# 개발 환경에서만 Swagger 및 Redoc 활성화
Expand Down

0 comments on commit 34edbb1

Please sign in to comment.