X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/9a90e0391a32ace46fb431b03dfbe52f40393667..db7516d6dd2c1613cb73690b873502171349f966:/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 + )