13 lines
444 B
Python
Raw Normal View History

2013-09-29 15:37:58 +02:00
from django.conf.urls import patterns, url
2013-09-29 01:21:44 +02:00
from accounts.views import UserProfileView
2013-09-28 17:17:15 +02:00
from django.contrib.auth.views import password_change
2013-09-29 01:21:44 +02:00
urlpatterns = patterns(
'',
2013-09-28 17:17:15 +02:00
url(r'^profile/', UserProfileView.as_view(), name="account_profile"),
url(r'^change_pw/', password_change, {
2013-09-29 01:21:44 +02:00
'template_name': 'registration/password_change.html',
'post_change_redirect': '/account/profile/', },
name="password_change"), )