dev: Add URL to preview error 404/5xx pages.

This commit is contained in:
Cory Lynch 2017-06-14 23:42:27 -04:00 committed by Tim Abbott
parent 790240cc57
commit 78de70688e
2 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,8 @@ class DocPageTest(ZulipTestCase):
])
self._test('/devlogin/', 'Normal users')
self._test('/devtools/', 'Useful development URLs')
self._test('/errors/404', 'Page not found')
self._test('/errors/5xx', 'Internal server error')
self._test('/emails/', 'Road Runner invited you to join Zulip')
self._test('/register/', 'Sign up for Zulip')

View File

@ -38,6 +38,10 @@ urls = [
# Listing of useful URLs and various tools for development
url(r'^devtools/$', TemplateView.as_view(template_name='zerver/dev_tools.html')),
# Have easy access for error pages
url(r'^errors/404/$', TemplateView.as_view(template_name='404.html')),
url(r'^errors/5xx/$', TemplateView.as_view(template_name='500.html')),
]
i18n_urls = [