diff 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
line wrap: on
line diff
--- a/accounts/urls.py	Sat May 11 16:21:55 2013 -0500
+++ b/accounts/urls.py	Sat May 11 23:39:46 2013 -0500
@@ -1,6 +1,7 @@
 """urls for the accounts application"""
 from django.conf.urls import patterns, url
 from django.conf import settings
+from django.views.generic import TemplateView
 
 urlpatterns = patterns('accounts.views',
     url(r'^login/ajax/$', 'login_ajax', name='accounts-login_ajax'),
@@ -43,5 +44,11 @@
         'django.contrib.auth.views.password_reset_complete',
         kwargs={'template_name': 'accounts/password_reset_complete.html'},
         name='accounts-password_reset_success'),
+    url(r'^username/query/$',
+        'accounts.views.username_query',
+        name='accounts-username_query'),
+    url(r'^username/sent/$',
+        TemplateView.as_view(template_name='accounts/username_sent.html'),
+        name='accounts-username_sent'),
 )