comparison accounts/urls.py @ 1116:85119508e072

Convert password change to V3 design.
author Brian Neal <bgneal@gmail.com>
date Tue, 19 Jul 2016 21:20:44 -0500
parents d613d25a021e
children dd57bacde961
comparison
equal deleted inserted replaced
1115:d613d25a021e 1116:85119508e072
1 """urls for the accounts application""" 1 """urls for the accounts application"""
2 from django.conf.urls import url 2 from django.conf.urls import url
3 from django.conf import settings 3 from django.conf import settings
4 import django.contrib.auth.views as auth_views 4 import django.contrib.auth.views as auth_views
5 from django.views.generic import TemplateView
6 5
7 import accounts.views 6 import accounts.views
8 7
9 urlpatterns = [ 8 urlpatterns = [
10 url(r'^register/$', accounts.views.register, name='accounts-register'), 9 url(r'^register/$', accounts.views.register, name='accounts-register'),
32 'extra_context': {'V3_DESIGN': True}, 31 'extra_context': {'V3_DESIGN': True},
33 }, 32 },
34 name='accounts-logout'), 33 name='accounts-logout'),
35 url(r'^password/$', 34 url(r'^password/$',
36 auth_views.password_change, 35 auth_views.password_change,
37 {'template_name': 'accounts/password_change.html', 36 kwargs={
38 'post_change_redirect': settings.LOGIN_REDIRECT_URL}, 37 'template_name': 'accounts/password_change.html',
38 'post_change_redirect': settings.LOGIN_REDIRECT_URL,
39 'extra_context': {'V3_DESIGN': True},
40 },
39 name='accounts-password_change'), 41 name='accounts-password_change'),
40 url(r'^password/reset/$', 42 url(r'^password/reset/$',
41 auth_views.password_reset, 43 auth_views.password_reset,
42 kwargs={'template_name': 'accounts/password_reset.html', 44 kwargs={'template_name': 'accounts/password_reset.html',
43 'email_template_name': 'accounts/password_reset_email.txt', 45 'email_template_name': 'accounts/password_reset_email.txt',