From f9fa3eb1cc2ab20ffbe18a3faf67e5585321a543 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 26 Jul 2015 18:14:30 +0000 Subject: [PATCH] Modified the development and test settings for static files to match the new settings. - Legacy-Id: 9888 --- ietf/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ietf/urls.py b/ietf/urls.py index a243c6d2f..5ede11fc4 100644 --- a/ietf/urls.py +++ b/ietf/urls.py @@ -74,10 +74,10 @@ for n,a in api._api_list: if settings.SERVER_MODE in ('development', 'test'): urlpatterns += patterns('', - (r'^(?P(?:images|css|js|test|static|fonts|other)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), - (r'^(?Padmin/(?:img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), - (r'^(?Psecretariat/(img|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), - (r'^(?Probots\.txt)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT+"dev/"}), + (r'^(?P(?:images|css|js|test|static|fonts|other)/.*)$', '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/"}), (r'^_test500/$', lambda x: None), (r'^environment/$', 'ietf.help.views.environment'), )