view gpp/accounts/urls.py @ 77:d5eed0a91a05

#24 - Make the default date for a birthday today - 30 years. This allows you to select any month with the picker if the field is initially blank.
author Brian Neal <bgneal@gmail.com>
date Fri, 10 Jul 2009 23:56:02 +0000
parents eecbd00e092a
children 4edfea7f8620
line wrap: on
line source
"""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'),
    (r'^register/thanks/$', 'register_thanks'),
    (r'^register/confirm/(?P<username>\w{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'),
)

urlpatterns += patterns('',
    url(r'^login/',
        'django.contrib.auth.views.login',
        kwargs={'template_name': 'accounts/login.html'},
        name='accounts-login'),
    url(r'^logout/',
        'django.contrib.auth.views.logout',
        kwargs={'template_name': 'accounts/logout.html'},
        name='accounts-logout'), 
    (r'^password/', 
        'django.contrib.auth.views.password_change', 
        {'template_name': 'accounts/password_change.html',
         'post_change_redirect': settings.LOGIN_REDIRECT_URL}),
)