comparison accounts/urls.py @ 1115:d613d25a021e

Convert login, logout, and lost username views to V3 design.
author Brian Neal <bgneal@gmail.com>
date Tue, 12 Jul 2016 21:31:09 -0500
parents e932f2ecd4a7
children 85119508e072
comparison
equal deleted inserted replaced
1114:6dd1f0065859 1115:d613d25a021e
18 ] 18 ]
19 19
20 urlpatterns += [ 20 urlpatterns += [
21 url(r'^login/$', 21 url(r'^login/$',
22 auth_views.login, 22 auth_views.login,
23 kwargs={'template_name': 'accounts/login.html'}, 23 kwargs={
24 'template_name': 'accounts/login.html',
25 'extra_context': {'V3_DESIGN': True},
26 },
24 name='accounts-login'), 27 name='accounts-login'),
25 url(r'^logout/$', 28 url(r'^logout/$',
26 auth_views.logout, 29 auth_views.logout,
27 kwargs={'template_name': 'accounts/logout.html'}, 30 kwargs={
31 'template_name': 'accounts/logout.html',
32 'extra_context': {'V3_DESIGN': True},
33 },
28 name='accounts-logout'), 34 name='accounts-logout'),
29 url(r'^password/$', 35 url(r'^password/$',
30 auth_views.password_change, 36 auth_views.password_change,
31 {'template_name': 'accounts/password_change.html', 37 {'template_name': 'accounts/password_change.html',
32 'post_change_redirect': settings.LOGIN_REDIRECT_URL}, 38 'post_change_redirect': settings.LOGIN_REDIRECT_URL},
54 name='accounts-password_reset_success'), 60 name='accounts-password_reset_success'),
55 url(r'^username/query/$', 61 url(r'^username/query/$',
56 accounts.views.username_query, 62 accounts.views.username_query,
57 name='accounts-username_query'), 63 name='accounts-username_query'),
58 url(r'^username/sent/$', 64 url(r'^username/sent/$',
59 TemplateView.as_view(template_name='accounts/username_sent.html'), 65 accounts.views.UsernameSentView.as_view(),
60 name='accounts-username_sent'), 66 name='accounts-username_sent'),
61 ] 67 ]