From e96bb4c903cc9775bea1944b03fa3f30bc64cd44 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 10 Jun 2022 15:39:50 +0100 Subject: [PATCH] Remove unnecessary static path This is handled by whitenoise --- website/urls.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/urls.py b/website/urls.py index c65d781..cfc8a51 100644 --- a/website/urls.py +++ b/website/urls.py @@ -18,10 +18,8 @@ urlpatterns = [ if settings.DEBUG: from django.conf.urls.static import static - from django.contrib.staticfiles.urls import staticfiles_urlpatterns - # Serve static and media files from development server - urlpatterns += staticfiles_urlpatterns() + # Serve media files from development server urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns = urlpatterns + [