From e5f3df1047b48f6cdb27a5786c2500f2cc8993ea Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 28 Jul 2015 10:38:42 +0000 Subject: [PATCH] Removed unnecessary urlpattern components from ietf/urls.py. - Legacy-Id: 9908 --- ietf/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/urls.py b/ietf/urls.py index 4a1c71bf3..ad41e9939 100644 --- a/ietf/urls.py +++ b/ietf/urls.py @@ -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(?:images|css|js|test|static|fonts|lib|other)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}), + (r'^(?P(?:images|css|js|test|static)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}), (r'^(?Padmin/(?:img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}), (r'^(?Psecretariat/(img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}), (r'^(?Probots\.txt)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL+"dev/"}),