Removed unnecessary urlpattern components from ietf/urls.py.

- Legacy-Id: 9908
This commit is contained in:
Henrik Levkowetz 2015-07-28 10:38:42 +00:00
parent 19028d479d
commit e5f3df1047

View file

@ -72,9 +72,10 @@ for n,a in api._api_list:
(r'^api/v1/', include(a.urls)),
)
# This is needed to serve files which are not handled by collectstatic:
if settings.SERVER_MODE in ('development', 'test'):
urlpatterns += patterns('',
(r'^(?P<path>(?:images|css|js|test|static|fonts|lib|other)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}),
(r'^(?P<path>(?:images|css|js|test|static)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}),
(r'^(?P<path>admin/(?:img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}),
(r'^(?P<path>secretariat/(img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}),
(r'^(?P<path>robots\.txt)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL+"dev/"}),