diff --git a/sessao/urls.py b/sessao/urls.py index 8e8e17e23..45e7f7c1c 100644 --- a/sessao/urls.py +++ b/sessao/urls.py @@ -1,4 +1,5 @@ from django.conf.urls import include, url +from django.views.static import serve from sapl import settings from sessao.views import (EditExpedienteOrdemDiaView, EditMateriaOrdemDiaView, @@ -106,7 +107,7 @@ sessao_rest = [ urlpatterns = [ url(r'^sessao/', include(urlpatterns_sessao, sessao_crud.namespace, sessao_crud.namespace)), - url(r'^media/(?P.*)$', 'django.views.static.serve', + url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}), url(r'^rest/', include(sessao_rest)), url(r'^sistema/sessao-plenaria/tipo/', include(tipo_sessao_crud.urls)),