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