Browse Source

Move url media para sapl.urls

pull/507/head
LeandroRoberto 9 years ago
parent
commit
f18089e227
  1. 4
      sapl/base/urls.py
  2. 4
      sapl/sessao/urls.py
  3. 3
      sapl/urls.py

4
sapl/base/urls.py

@ -23,7 +23,3 @@ urlpatterns = [
name='login'),
url(r'^logout/$', views.logout, {'next_page': '/login'}, name='logout')
]
# Fix a static asset finding error on Django 1.9 + gunicorn:
# http://stackoverflow.com/questions/35510373/
urlpatterns += staticfiles_urlpatterns()

4
sapl/sessao/urls.py

@ -1,7 +1,5 @@
from django.conf.urls import include, url
from django.views.static import serve
from sapl import settings
from sapl.sessao.views import (BancadaCrud, CargoBancadaCrud,
EditMateriaOrdemDiaView, ExpedienteMateriaCrud,
ExpedienteView, ListMateriaOrdemDiaView,
@ -40,8 +38,6 @@ urlpatterns = [
url(r'^(?P<pk>\d+)/reordenar-expediente$', reordernar_materias_expediente,
name="reordenar_expediente"),
url(r'^media/(?P<path>.*)$', serve,
{'document_root': settings.MEDIA_ROOT}),
url(r'^rest/', include(sessao_rest)),
url(r'^sistema/sessao-plenaria/tipo/',
include(TipoSessaoCrud.get_urls())),

3
sapl/urls.py

@ -53,6 +53,9 @@ urlpatterns = [
]
# Fix a static asset finding error on Django 1.9 + gunicorn:
# http://stackoverflow.com/questions/35510373/
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL,
document_root=settings.STATIC_ROOT)

Loading…
Cancel
Save