Mercurial > public > sg101
comparison gpp/accounts/urls.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | eecbd00e092a |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 """urls for the accounts application""" | |
2 from django.conf.urls.defaults import * | |
3 | |
4 urlpatterns = patterns('accounts.views', | |
5 url(r'^register/$', 'register', name='accounts-register'), | |
6 (r'^register/thanks/$', 'register_thanks'), | |
7 (r'^register/confirm/(?P<username>\w{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'), | |
8 ) | |
9 | |
10 urlpatterns += patterns('', | |
11 url(r'^login/', | |
12 'django.contrib.auth.views.login', | |
13 kwargs={'template_name': 'accounts/login.html'}, | |
14 name='accounts-login'), | |
15 url(r'^logout/', | |
16 'django.contrib.auth.views.logout', | |
17 kwargs={'template_name': 'accounts/logout.html'}, | |
18 name='accounts-logout'), | |
19 (r'^password/', | |
20 'django.contrib.auth.views.password_change', | |
21 {'template_name': 'accounts/password_change.html', | |
22 'post_change_redirect': '/accounts/profile/'}), | |
23 ) | |
24 | |
25 | |
26 # vim: ts=4 sw=4 |