From b136222b450e8061d558047cf4b34ee4e98d7446 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 11 Mar 2016 11:16:58 -0300 Subject: [PATCH] Remove deprecated warning for Django 1.10 --- sessao/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)),