annotate gpp/accounts/urls.py @ 6:b6263ac72052

Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 22:50:56 +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