annotate 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 |
rev |
line source |
gremmie@1
|
1 """urls for the accounts application"""
|
gremmie@1
|
2 from django.conf.urls.defaults import *
|
gremmie@1
|
3
|
gremmie@1
|
4 urlpatterns = patterns('accounts.views',
|
gremmie@1
|
5 url(r'^register/$', 'register', name='accounts-register'),
|
gremmie@1
|
6 (r'^register/thanks/$', 'register_thanks'),
|
gremmie@1
|
7 (r'^register/confirm/(?P<username>\w{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'),
|
gremmie@1
|
8 )
|
gremmie@1
|
9
|
gremmie@1
|
10 urlpatterns += patterns('',
|
gremmie@1
|
11 url(r'^login/',
|
gremmie@1
|
12 'django.contrib.auth.views.login',
|
gremmie@1
|
13 kwargs={'template_name': 'accounts/login.html'},
|
gremmie@1
|
14 name='accounts-login'),
|
gremmie@1
|
15 url(r'^logout/',
|
gremmie@1
|
16 'django.contrib.auth.views.logout',
|
gremmie@1
|
17 kwargs={'template_name': 'accounts/logout.html'},
|
gremmie@1
|
18 name='accounts-logout'),
|
gremmie@1
|
19 (r'^password/',
|
gremmie@1
|
20 'django.contrib.auth.views.password_change',
|
gremmie@1
|
21 {'template_name': 'accounts/password_change.html',
|
gremmie@1
|
22 'post_change_redirect': '/accounts/profile/'}),
|
gremmie@1
|
23 )
|
gremmie@1
|
24
|
gremmie@1
|
25
|
gremmie@1
|
26 # vim: ts=4 sw=4
|