annotate accounts/urls.py @ 1148:176d1550bf25

Convert weblinks to V3 design.
author Brian Neal <bgneal@gmail.com>
date Thu, 01 Dec 2016 21:02:31 -0600
parents dd57bacde961
children
rev   line source
gremmie@1 1 """urls for the accounts application"""
bgneal@1028 2 from django.conf.urls import url
bgneal@76 3 from django.conf import settings
bgneal@1028 4 import django.contrib.auth.views as auth_views
gremmie@1 5
bgneal@1028 6 import accounts.views
bgneal@1028 7
bgneal@1028 8 urlpatterns = [
bgneal@1028 9 url(r'^register/$', accounts.views.register, name='accounts-register'),
bgneal@1028 10 url(r'^register/1/$', accounts.views.register1, name='accounts-register1'),
bgneal@1028 11 url(r'^register/2/$', accounts.views.register2, name='accounts-register2'),
bgneal@1028 12 url(r'^register/code/$', accounts.views.get_code, name='accounts-code'),
bgneal@1028 13 url(r'^register/thanks/$', accounts.views.register_thanks, name='accounts-register_thanks'),
bgneal@905 14 url(r'^register/confirm/(?P<username>[\w.@+-]{1,30})/(?P<key>[a-zA-Z0-9]{20})/$',
bgneal@1028 15 accounts.views.register_confirm,
bgneal@905 16 name='accounts-register_confirm'),
bgneal@1028 17 ]
gremmie@1 18
bgneal@1028 19 urlpatterns += [
bgneal@78 20 url(r'^login/$',
bgneal@1028 21 auth_views.login,
bgneal@1115 22 kwargs={
bgneal@1115 23 'template_name': 'accounts/login.html',
bgneal@1115 24 'extra_context': {'V3_DESIGN': True},
bgneal@1115 25 },
gremmie@1 26 name='accounts-login'),
bgneal@78 27 url(r'^logout/$',
bgneal@1028 28 auth_views.logout,
bgneal@1115 29 kwargs={
bgneal@1115 30 'template_name': 'accounts/logout.html',
bgneal@1115 31 'extra_context': {'V3_DESIGN': True},
bgneal@1115 32 },
bgneal@289 33 name='accounts-logout'),
bgneal@1028 34 url(r'^password/$',
bgneal@1028 35 auth_views.password_change,
bgneal@1116 36 kwargs={
bgneal@1116 37 'template_name': 'accounts/password_change.html',
bgneal@1116 38 'post_change_redirect': settings.LOGIN_REDIRECT_URL,
bgneal@1116 39 'extra_context': {'V3_DESIGN': True},
bgneal@1116 40 },
bgneal@1032 41 name='accounts-password_change'),
bgneal@289 42 url(r'^password/reset/$',
bgneal@1028 43 auth_views.password_reset,
bgneal@1117 44 kwargs={
bgneal@1117 45 'template_name': 'accounts/password_reset.html',
bgneal@1117 46 'email_template_name': 'accounts/password_reset_email.txt',
bgneal@1117 47 'post_reset_redirect': '/accounts/password/reset/sent/',
bgneal@1117 48 'extra_context': {'V3_DESIGN': True},
bgneal@1117 49 },
bgneal@78 50 name='accounts-password_reset'),
bgneal@78 51 url(r'^password/reset/sent/$',
bgneal@1028 52 auth_views.password_reset_done,
bgneal@1117 53 kwargs={
bgneal@1117 54 'template_name': 'accounts/password_reset_sent.html',
bgneal@1117 55 'extra_context': {'V3_DESIGN': True},
bgneal@1117 56 },
bgneal@78 57 name='accounts-password_reset_sent'),
bgneal@1117 58 url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
bgneal@1028 59 auth_views.password_reset_confirm,
bgneal@78 60 kwargs={
bgneal@78 61 'template_name': 'accounts/password_reset_confirm.html',
bgneal@78 62 'post_reset_redirect': '/accounts/password/reset/success/',
bgneal@1117 63 'extra_context': {'V3_DESIGN': True},
bgneal@1117 64 },
bgneal@78 65 name='accounts-password_reset_confirm'),
bgneal@78 66 url(r'^password/reset/success/$',
bgneal@1028 67 auth_views.password_reset_complete,
bgneal@1117 68 kwargs={
bgneal@1117 69 'template_name': 'accounts/password_reset_complete.html',
bgneal@1117 70 'extra_context': {'V3_DESIGN': True},
bgneal@1117 71 },
bgneal@78 72 name='accounts-password_reset_success'),
bgneal@659 73 url(r'^username/query/$',
bgneal@1028 74 accounts.views.username_query,
bgneal@659 75 name='accounts-username_query'),
bgneal@659 76 url(r'^username/sent/$',
bgneal@1115 77 accounts.views.UsernameSentView.as_view(),
bgneal@659 78 name='accounts-username_sent'),
bgneal@1028 79 ]