comparison accounts/urls.py @ 905:be233ba7ca31

Reworked registration process. Previous one proved too challenging for some humans. Hopefully made it simpler but still unusual to confuse bots. Increased test coverage also.
author Brian Neal <bgneal@gmail.com>
date Sun, 08 Mar 2015 11:06:07 -0500
parents 95f4e7f352fd
children 5ba2508939f7
comparison
equal deleted inserted replaced
904:d4479ebbd118 905:be233ba7ca31
3 from django.conf import settings 3 from django.conf import settings
4 from django.views.generic import TemplateView 4 from django.views.generic import TemplateView
5 5
6 urlpatterns = patterns('accounts.views', 6 urlpatterns = patterns('accounts.views',
7 url(r'^register/$', 'register', name='accounts-register'), 7 url(r'^register/$', 'register', name='accounts-register'),
8 (r'^register/thanks/$', 'register_thanks'), 8 url(r'^register/1/$', 'register1', name='accounts-register1'),
9 (r'^register/confirm/(?P<username>[\w.@+-]{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'), 9 url(r'^register/2/$', 'register2', name='accounts-register2'),
10 url(r'^register/code/$', 'get_code', name='accounts-code'),
11 url(r'^register/thanks/$', 'register_thanks', name='accounts-register_thanks'),
12 url(r'^register/confirm/(?P<username>[\w.@+-]{1,30})/(?P<key>[a-zA-Z0-9]{20})/$',
13 'register_confirm',
14 name='accounts-register_confirm'),
10 ) 15 )
11 16
12 urlpatterns += patterns('', 17 urlpatterns += patterns('',
13 url(r'^login/$', 18 url(r'^login/$',
14 'django.contrib.auth.views.login', 19 'django.contrib.auth.views.login',