X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/9a90e0391a32ace46fb431b03dfbe52f40393667..0eafaa3ce7287b5ba7a95f3b6d528dffd9648a1d:/src/cas/urls.py?ds=sidebyside 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 + )