mirror of https://github.com/zulip/zulip.git
dev: Add URL to preview error 404/5xx pages.
This commit is contained in:
parent
790240cc57
commit
78de70688e
|
@ -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')
|
||||
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue