[IMP] BASE: [UPDT] BASE: Updated the media handling for resricting unautherized use of media files

This commit is contained in:
Horilla
2025-05-21 11:18:25 +05:30
parent 5b8517de50
commit 9f66406cd6
3 changed files with 142 additions and 6 deletions

View File

@@ -44,5 +44,5 @@ urlpatterns = [
path("health/", health_check),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# if settings.DEBUG:
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)