Display error page templates, for testing purposes

This commit allows us to test the server error template by visiting `/500`. This
way, we can catch errors in our error templates, instead of having infinitely
recursing errors.
This commit is contained in:
David Baumgold
2014-03-25 14:55:12 -04:00
parent 05a13aa0c3
commit f5f7b77d4e

View File

@@ -499,3 +499,9 @@ if settings.DEBUG:
#Custom error pages
handler404 = 'static_template_view.views.render_404'
handler500 = 'static_template_view.views.render_500'
# display error page templates, for testing purposes
urlpatterns += (
url(r'404', handler404),
url(r'500', handler500),
)