Handle ^lib/ urls in development and test modes.

- Legacy-Id: 9892
This commit is contained in:
Henrik Levkowetz 2015-07-27 16:51:32 +00:00
parent 3a0a36b1e1
commit 2da90c8ab3

View file

@ -74,7 +74,7 @@ for n,a in api._api_list:
if settings.SERVER_MODE in ('development', 'test'): if settings.SERVER_MODE in ('development', 'test'):
urlpatterns += patterns('', urlpatterns += patterns('',
(r'^(?P<path>(?:images|css|js|test|static|fonts|other)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL}), (r'^(?P<path>(?:images|css|js|test|static|fonts|lib|other)/.*)$', '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>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>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/"}), (r'^(?P<path>robots\.txt)$', 'django.views.static.serve', {'document_root': settings.STATIC_LOCAL+"dev/"}),