gremmie@1: """urls for the accounts application""" bgneal@1028: from django.conf.urls import url bgneal@76: from django.conf import settings bgneal@1028: import django.contrib.auth.views as auth_views gremmie@1: bgneal@1028: import accounts.views bgneal@1028: bgneal@1028: urlpatterns = [ bgneal@1028: url(r'^register/$', accounts.views.register, name='accounts-register'), bgneal@1028: url(r'^register/1/$', accounts.views.register1, name='accounts-register1'), bgneal@1028: url(r'^register/2/$', accounts.views.register2, name='accounts-register2'), bgneal@1028: url(r'^register/code/$', accounts.views.get_code, name='accounts-code'), bgneal@1028: url(r'^register/thanks/$', accounts.views.register_thanks, name='accounts-register_thanks'), bgneal@905: url(r'^register/confirm/(?P[\w.@+-]{1,30})/(?P[a-zA-Z0-9]{20})/$', bgneal@1028: accounts.views.register_confirm, bgneal@905: name='accounts-register_confirm'), bgneal@1028: ] gremmie@1: bgneal@1028: urlpatterns += [ bgneal@78: url(r'^login/$', bgneal@1028: auth_views.login, bgneal@1115: kwargs={ bgneal@1115: 'template_name': 'accounts/login.html', bgneal@1115: 'extra_context': {'V3_DESIGN': True}, bgneal@1115: }, gremmie@1: name='accounts-login'), bgneal@78: url(r'^logout/$', bgneal@1028: auth_views.logout, bgneal@1115: kwargs={ bgneal@1115: 'template_name': 'accounts/logout.html', bgneal@1115: 'extra_context': {'V3_DESIGN': True}, bgneal@1115: }, bgneal@289: name='accounts-logout'), bgneal@1028: url(r'^password/$', bgneal@1028: auth_views.password_change, bgneal@1116: kwargs={ bgneal@1116: 'template_name': 'accounts/password_change.html', bgneal@1116: 'post_change_redirect': settings.LOGIN_REDIRECT_URL, bgneal@1116: 'extra_context': {'V3_DESIGN': True}, bgneal@1116: }, bgneal@1032: name='accounts-password_change'), bgneal@289: url(r'^password/reset/$', bgneal@1028: auth_views.password_reset, bgneal@1117: kwargs={ bgneal@1117: 'template_name': 'accounts/password_reset.html', bgneal@1117: 'email_template_name': 'accounts/password_reset_email.txt', bgneal@1117: 'post_reset_redirect': '/accounts/password/reset/sent/', bgneal@1117: 'extra_context': {'V3_DESIGN': True}, bgneal@1117: }, bgneal@78: name='accounts-password_reset'), bgneal@78: url(r'^password/reset/sent/$', bgneal@1028: auth_views.password_reset_done, bgneal@1117: kwargs={ bgneal@1117: 'template_name': 'accounts/password_reset_sent.html', bgneal@1117: 'extra_context': {'V3_DESIGN': True}, bgneal@1117: }, bgneal@78: name='accounts-password_reset_sent'), bgneal@1117: url(r'^password/reset/confirm/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', bgneal@1028: auth_views.password_reset_confirm, bgneal@78: kwargs={ bgneal@78: 'template_name': 'accounts/password_reset_confirm.html', bgneal@78: 'post_reset_redirect': '/accounts/password/reset/success/', bgneal@1117: 'extra_context': {'V3_DESIGN': True}, bgneal@1117: }, bgneal@78: name='accounts-password_reset_confirm'), bgneal@78: url(r'^password/reset/success/$', bgneal@1028: auth_views.password_reset_complete, bgneal@1117: kwargs={ bgneal@1117: 'template_name': 'accounts/password_reset_complete.html', bgneal@1117: 'extra_context': {'V3_DESIGN': True}, bgneal@1117: }, bgneal@78: name='accounts-password_reset_success'), bgneal@659: url(r'^username/query/$', bgneal@1028: accounts.views.username_query, bgneal@659: name='accounts-username_query'), bgneal@659: url(r'^username/sent/$', bgneal@1115: accounts.views.UsernameSentView.as_view(), bgneal@659: name='accounts-username_sent'), bgneal@1028: ]