mirror of https://github.com/zulip/zulip.git
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:
parent
b7c5ae7bca
commit
b94892d633
|
@ -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')),
|
||||
|
|
Loading…
Reference in New Issue