# HG changeset patch # User Brian Neal # Date 1247269806 0 # Node ID eecbd00e092a564d9e277451fb1e9fe25667716f # Parent 374b24dd2f9a79cda256816da4cc56292860b52b #25 Fix problem with redirect after changing password. diff -r 374b24dd2f9a -r eecbd00e092a gpp/accounts/urls.py --- a/gpp/accounts/urls.py Sun Jul 05 00:03:40 2009 +0000 +++ b/gpp/accounts/urls.py Fri Jul 10 23:50:06 2009 +0000 @@ -1,5 +1,6 @@ """urls for the accounts application""" from django.conf.urls.defaults import * +from django.conf import settings urlpatterns = patterns('accounts.views', url(r'^register/$', 'register', name='accounts-register'), @@ -19,8 +20,6 @@ (r'^password/', 'django.contrib.auth.views.password_change', {'template_name': 'accounts/password_change.html', - 'post_change_redirect': '/accounts/profile/'}), + 'post_change_redirect': settings.LOGIN_REDIRECT_URL}), ) - -# vim: ts=4 sw=4