annotate accounts/urls.py @ 861:e4f8d87c3d30

Configure Markdown logger to reduce noise in logs. Markdown is logging at the INFO level whenever it loads an extension. This looks like it has been fixed in master at GitHub. But until then we will explicitly configure the MARKDOWN logger to log at WARNING or higher.
author Brian Neal <bgneal@gmail.com>
date Mon, 01 Dec 2014 18:36:27 -0600
parents 95f4e7f352fd
children be233ba7ca31
rev   line source
gremmie@1 1 """urls for the accounts application"""
bgneal@574 2 from django.conf.urls import patterns, url
bgneal@76 3 from django.conf import settings
bgneal@659 4 from django.views.generic import TemplateView
gremmie@1 5
gremmie@1 6 urlpatterns = patterns('accounts.views',
gremmie@1 7 url(r'^register/$', 'register', name='accounts-register'),
gremmie@1 8 (r'^register/thanks/$', 'register_thanks'),
bgneal@289 9 (r'^register/confirm/(?P<username>[\w.@+-]{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'),
gremmie@1 10 )
gremmie@1 11
gremmie@1 12 urlpatterns += patterns('',
bgneal@78 13 url(r'^login/$',
gremmie@1 14 'django.contrib.auth.views.login',
gremmie@1 15 kwargs={'template_name': 'accounts/login.html'},
gremmie@1 16 name='accounts-login'),
bgneal@78 17 url(r'^logout/$',
gremmie@1 18 'django.contrib.auth.views.logout',
gremmie@1 19 kwargs={'template_name': 'accounts/logout.html'},
bgneal@289 20 name='accounts-logout'),
bgneal@289 21 (r'^password/$',
bgneal@289 22 'django.contrib.auth.views.password_change',
gremmie@1 23 {'template_name': 'accounts/password_change.html',
bgneal@76 24 'post_change_redirect': settings.LOGIN_REDIRECT_URL}),
bgneal@289 25 url(r'^password/reset/$',
bgneal@289 26 'django.contrib.auth.views.password_reset',
bgneal@78 27 kwargs={'template_name': 'accounts/password_reset.html',
bgneal@78 28 'email_template_name': 'accounts/password_reset_email.txt',
bgneal@78 29 'post_reset_redirect': '/accounts/password/reset/sent/'},
bgneal@78 30 name='accounts-password_reset'),
bgneal@78 31 url(r'^password/reset/sent/$',
bgneal@78 32 'django.contrib.auth.views.password_reset_done',
bgneal@78 33 kwargs={'template_name': 'accounts/password_reset_sent.html'},
bgneal@78 34 name='accounts-password_reset_sent'),
bgneal@752 35 url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9a-z]+-\w+)/$',
bgneal@78 36 'django.contrib.auth.views.password_reset_confirm',
bgneal@78 37 kwargs={
bgneal@78 38 'template_name': 'accounts/password_reset_confirm.html',
bgneal@78 39 'post_reset_redirect': '/accounts/password/reset/success/',
bgneal@78 40 },
bgneal@78 41 name='accounts-password_reset_confirm'),
bgneal@78 42 url(r'^password/reset/success/$',
bgneal@78 43 'django.contrib.auth.views.password_reset_complete',
bgneal@78 44 kwargs={'template_name': 'accounts/password_reset_complete.html'},
bgneal@78 45 name='accounts-password_reset_success'),
bgneal@659 46 url(r'^username/query/$',
bgneal@659 47 'accounts.views.username_query',
bgneal@659 48 name='accounts-username_query'),
bgneal@659 49 url(r'^username/sent/$',
bgneal@659 50 TemplateView.as_view(template_name='accounts/username_sent.html'),
bgneal@659 51 name='accounts-username_sent'),
gremmie@1 52 )
gremmie@1 53