tooling: Move email_log.py to development only views.

Some urls are only available in the development environment
(dev_urls.py); Corresponding views (here email_log.py) is moved to the
new directory zerver/views/development.

Fixes #11256.
This commit is contained in:
Vaibhav 2019-01-12 00:41:31 +05:30 committed by Tim Abbott
parent b7c5ae7bca
commit b94892d633
3 changed files with 4 additions and 4 deletions

View File

View File

@ -5,7 +5,7 @@ import os
from django.views.static import serve
import zerver.views.registration
import zerver.views.auth
import zerver.views.email_log
import zerver.views.development.email_log
# These URLs are available only in the development environment
@ -38,9 +38,9 @@ urls = [
{'template_name': 'zerver/dev_login.html'}, name='zerver.views.auth.login_page'),
# Page for testing email templates
url(r'^emails/$', zerver.views.email_log.email_page),
url(r'^emails/generate/$', zerver.views.email_log.generate_all_emails),
url(r'^emails/clear/$', zerver.views.email_log.clear_emails),
url(r'^emails/$', zerver.views.development.email_log.email_page),
url(r'^emails/generate/$', zerver.views.development.email_log.generate_all_emails),
url(r'^emails/clear/$', zerver.views.development.email_log.clear_emails),
# Listing of useful URLs and various tools for development
url(r'^devtools/$', TemplateView.as_view(template_name='zerver/dev_tools.html')),