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/"}),