From c940b61531872481d9150e7d054ee77617ff312c Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Fri, 15 May 2015 13:42:41 -0400 Subject: [PATCH] Refine error page regexes such that they only match 404 and 500 --- lms/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/urls.py b/lms/urls.py index b6cfa3e5b8..99120f1834 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -662,6 +662,6 @@ handler500 = 'static_template_view.views.render_500' # display error page templates, for testing purposes urlpatterns += ( - url(r'404', handler404), - url(r'500', handler500), + url(r'^404$', handler404), + url(r'^500$', handler500), )