mirror of https://github.com/zulip/zulip.git
Enable /terms and /privacy on the live site
At Jeff's request. (imported from commit 2cc25252e3183f858fcd63dddcc97573a5ac6082)
This commit is contained in:
parent
ec389c5c83
commit
6f3b9ef00d
|
@ -14,6 +14,10 @@ urlpatterns = patterns('',
|
|||
url(r'^accounts/login/', 'django.contrib.auth.views.login', {'template_name': 'zephyr/login.html'}),
|
||||
url(r'^accounts/logout/', 'django.contrib.auth.views.logout', {'template_name': 'zephyr/index.html'}),
|
||||
|
||||
# Terms of service and privacy policy
|
||||
url(r'^terms$', 'django.views.generic.simple.direct_to_template', {'template': 'zephyr/terms.html'}, name='terms'),
|
||||
url(r'^privacy$', 'django.views.generic.simple.direct_to_template', {'template': 'zephyr/privacy.html'}, name='privacy'),
|
||||
|
||||
# These are json format views used by the web client. They require a logged in browser.
|
||||
url(r'^json/update_pointer$', 'zephyr.views.json_update_pointer', name='json_update_pointer'),
|
||||
url(r'^json/get_updates$', 'zephyr.views.json_get_updates', name='json_get_updates'),
|
||||
|
@ -60,10 +64,6 @@ if settings.ALLOW_REGISTER:
|
|||
url(r'^accounts/send_confirm/(?P<email>[\S]+)?', 'django.views.generic.simple.direct_to_template',
|
||||
{'template': 'zephyr/accounts_send_confirm.html'}, name='send_confirm'),
|
||||
url(r'^accounts/do_confirm/(?P<confirmation_key>[\w]+)', 'confirmation.views.confirm', name='confirm'),
|
||||
|
||||
# Terms of service and privacy policy
|
||||
url(r'^terms$', 'django.views.generic.simple.direct_to_template', {'template': 'zephyr/terms.html'}, name='terms'),
|
||||
url(r'^privacy$', 'django.views.generic.simple.direct_to_template', {'template': 'zephyr/privacy.html'}, name='privacy'),
|
||||
)
|
||||
|
||||
if settings.DEBUG:
|
||||
|
|
Loading…
Reference in New Issue