diff 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
line wrap: on
line diff
--- 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