X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/9a90e0391a32ace46fb431b03dfbe52f40393667..40ba7c29763bfe39154f8b6444bf8b3b4ad0c56c:/src/cas/urls.py diff --git a/src/cas/urls.py b/src/cas/urls.py index ce01eb0..1c90a76 100644 --- a/src/cas/urls.py +++ b/src/cas/urls.py @@ -28,9 +28,8 @@ urlpatterns = [ if settings.DEBUG: - from django.views.static import serve - urlpatterns += [ - path('media/', serve, { - 'document_root': settings.MEDIA_ROOT, - }), - ] + from django.conf.urls.static import static + urlpatterns += static( + settings.MEDIA_URL, + document_root=settings.MEDIA_ROOT + )