gremmie@1: """urls for the accounts application""" gremmie@1: from django.conf.urls.defaults import * bgneal@76: from django.conf import settings gremmie@1: gremmie@1: urlpatterns = patterns('accounts.views', bgneal@500: url(r'^login/ajax/$', 'login_ajax', name='accounts-login_ajax'), gremmie@1: url(r'^register/$', 'register', name='accounts-register'), gremmie@1: (r'^register/thanks/$', 'register_thanks'), bgneal@289: (r'^register/confirm/(?P[\w.@+-]{1,30})/(?P[a-zA-Z0-9]{20})/$', 'register_confirm'), gremmie@1: ) gremmie@1: gremmie@1: urlpatterns += patterns('', bgneal@78: url(r'^login/$', gremmie@1: 'django.contrib.auth.views.login', gremmie@1: kwargs={'template_name': 'accounts/login.html'}, gremmie@1: name='accounts-login'), bgneal@78: url(r'^logout/$', gremmie@1: 'django.contrib.auth.views.logout', gremmie@1: kwargs={'template_name': 'accounts/logout.html'}, bgneal@289: name='accounts-logout'), bgneal@289: (r'^password/$', bgneal@289: 'django.contrib.auth.views.password_change', gremmie@1: {'template_name': 'accounts/password_change.html', bgneal@76: 'post_change_redirect': settings.LOGIN_REDIRECT_URL}), bgneal@289: url(r'^password/reset/$', bgneal@289: 'django.contrib.auth.views.password_reset', bgneal@78: kwargs={'template_name': 'accounts/password_reset.html', bgneal@78: 'email_template_name': 'accounts/password_reset_email.txt', bgneal@78: 'post_reset_redirect': '/accounts/password/reset/sent/'}, bgneal@78: name='accounts-password_reset'), bgneal@78: url(r'^password/reset/sent/$', bgneal@78: 'django.contrib.auth.views.password_reset_done', bgneal@78: kwargs={'template_name': 'accounts/password_reset_sent.html'}, bgneal@78: name='accounts-password_reset_sent'), bgneal@78: url(r'^password/reset/confirm/(?P[0-9a-z]+)/(?P[0-9a-z]+-\w+)/$', bgneal@78: 'django.contrib.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@78: }, bgneal@78: name='accounts-password_reset_confirm'), bgneal@78: url(r'^password/reset/success/$', bgneal@78: 'django.contrib.auth.views.password_reset_complete', bgneal@78: kwargs={'template_name': 'accounts/password_reset_complete.html'}, bgneal@78: name='accounts-password_reset_success'), gremmie@1: ) gremmie@1: