From 2fb9fe736ca610da23814152cb8aca5f813233b8 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Thu, 23 Mar 2023 19:33:51 +0530 Subject: [PATCH] fix: enable static and media urls Signed-off-by: Ameya Shenoy --- backend/backend/urls.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/backend/urls.py b/backend/backend/urls.py index ff2b6f0..ba69014 100644 --- a/backend/backend/urls.py +++ b/backend/backend/urls.py @@ -58,7 +58,6 @@ urlpatterns = [ ] +urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) +urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) -if settings.DEBUG: - urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) - urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)