gremmie@1: """urls for the accounts application""" gremmie@1: from django.conf.urls.defaults import * gremmie@1: gremmie@1: urlpatterns = patterns('accounts.views', gremmie@1: url(r'^register/$', 'register', name='accounts-register'), gremmie@1: (r'^register/thanks/$', 'register_thanks'), gremmie@1: (r'^register/confirm/(?P\w{1,30})/(?P[a-zA-Z0-9]{20})/$', 'register_confirm'), gremmie@1: ) gremmie@1: gremmie@1: urlpatterns += patterns('', gremmie@1: url(r'^login/', gremmie@1: 'django.contrib.auth.views.login', gremmie@1: kwargs={'template_name': 'accounts/login.html'}, gremmie@1: name='accounts-login'), gremmie@1: url(r'^logout/', gremmie@1: 'django.contrib.auth.views.logout', gremmie@1: kwargs={'template_name': 'accounts/logout.html'}, gremmie@1: name='accounts-logout'), gremmie@1: (r'^password/', gremmie@1: 'django.contrib.auth.views.password_change', gremmie@1: {'template_name': 'accounts/password_change.html', gremmie@1: 'post_change_redirect': '/accounts/profile/'}), gremmie@1: ) gremmie@1: gremmie@1: gremmie@1: # vim: ts=4 sw=4