Mercurial > public > sg101
comparison accounts/urls.py @ 659:8e6b8ffe5f34
For issue #31, implement a forgot username feature.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 May 2013 23:39:46 -0500 |
parents | ee87ea74d46b |
children | 4a49d4ac319f |
comparison
equal
deleted
inserted
replaced
658:2adf01661ac5 | 659:8e6b8ffe5f34 |
---|---|
1 """urls for the accounts application""" | 1 """urls for the accounts application""" |
2 from django.conf.urls import patterns, url | 2 from django.conf.urls import patterns, url |
3 from django.conf import settings | 3 from django.conf import settings |
4 from django.views.generic import TemplateView | |
4 | 5 |
5 urlpatterns = patterns('accounts.views', | 6 urlpatterns = patterns('accounts.views', |
6 url(r'^login/ajax/$', 'login_ajax', name='accounts-login_ajax'), | 7 url(r'^login/ajax/$', 'login_ajax', name='accounts-login_ajax'), |
7 url(r'^register/$', 'register', name='accounts-register'), | 8 url(r'^register/$', 'register', name='accounts-register'), |
8 (r'^register/thanks/$', 'register_thanks'), | 9 (r'^register/thanks/$', 'register_thanks'), |
41 name='accounts-password_reset_confirm'), | 42 name='accounts-password_reset_confirm'), |
42 url(r'^password/reset/success/$', | 43 url(r'^password/reset/success/$', |
43 'django.contrib.auth.views.password_reset_complete', | 44 'django.contrib.auth.views.password_reset_complete', |
44 kwargs={'template_name': 'accounts/password_reset_complete.html'}, | 45 kwargs={'template_name': 'accounts/password_reset_complete.html'}, |
45 name='accounts-password_reset_success'), | 46 name='accounts-password_reset_success'), |
47 url(r'^username/query/$', | |
48 'accounts.views.username_query', | |
49 name='accounts-username_query'), | |
50 url(r'^username/sent/$', | |
51 TemplateView.as_view(template_name='accounts/username_sent.html'), | |
52 name='accounts-username_sent'), | |
46 ) | 53 ) |
47 | 54 |