Remove unnecessary static path

This is handled by whitenoise
This commit is contained in:
Jake Howard 2022-06-10 15:39:50 +01:00
parent b195ae2a62
commit e96bb4c903
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -18,10 +18,8 @@ urlpatterns = [
if settings.DEBUG: if settings.DEBUG:
from django.conf.urls.static import static from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Serve static and media files from development server # Serve media files from development server
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns = urlpatterns + [ urlpatterns = urlpatterns + [