Mercurial > public > sg101
comparison gpp/accounts/urls.py @ 76:eecbd00e092a
#25 Fix problem with redirect after changing password.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 10 Jul 2009 23:50:06 +0000 |
parents | dbd703f7d63a |
children | 4edfea7f8620 |
comparison
equal
deleted
inserted
replaced
75:374b24dd2f9a | 76:eecbd00e092a |
---|---|
1 """urls for the accounts application""" | 1 """urls for the accounts application""" |
2 from django.conf.urls.defaults import * | 2 from django.conf.urls.defaults import * |
3 from django.conf import settings | |
3 | 4 |
4 urlpatterns = patterns('accounts.views', | 5 urlpatterns = patterns('accounts.views', |
5 url(r'^register/$', 'register', name='accounts-register'), | 6 url(r'^register/$', 'register', name='accounts-register'), |
6 (r'^register/thanks/$', 'register_thanks'), | 7 (r'^register/thanks/$', 'register_thanks'), |
7 (r'^register/confirm/(?P<username>\w{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'), | 8 (r'^register/confirm/(?P<username>\w{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'), |
17 kwargs={'template_name': 'accounts/logout.html'}, | 18 kwargs={'template_name': 'accounts/logout.html'}, |
18 name='accounts-logout'), | 19 name='accounts-logout'), |
19 (r'^password/', | 20 (r'^password/', |
20 'django.contrib.auth.views.password_change', | 21 'django.contrib.auth.views.password_change', |
21 {'template_name': 'accounts/password_change.html', | 22 {'template_name': 'accounts/password_change.html', |
22 'post_change_redirect': '/accounts/profile/'}), | 23 'post_change_redirect': settings.LOGIN_REDIRECT_URL}), |
23 ) | 24 ) |
24 | 25 |
25 | |
26 # vim: ts=4 sw=4 |