annotate gpp/accounts/urls.py @ 37:91fd31dc78fb
Removed the database logging stuff. Will replace with Python logging.
author |
Brian Neal <bgneal@gmail.com> |
date |
Thu, 11 Jun 2009 01:00:31 +0000 |
parents |
dbd703f7d63a |
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
|