Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/accounts/urls.py Sun Mar 08 11:01:00 2015 -0500 +++ b/accounts/urls.py Sun Mar 08 11:06:07 2015 -0500 @@ -5,8 +5,13 @@ urlpatterns = patterns('accounts.views', url(r'^register/$', 'register', name='accounts-register'), - (r'^register/thanks/$', 'register_thanks'), - (r'^register/confirm/(?P<username>[\w.@+-]{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', 'register_confirm'), + url(r'^register/1/$', 'register1', name='accounts-register1'), + url(r'^register/2/$', 'register2', name='accounts-register2'), + url(r'^register/code/$', 'get_code', name='accounts-code'), + url(r'^register/thanks/$', 'register_thanks', name='accounts-register_thanks'), + url(r'^register/confirm/(?P<username>[\w.@+-]{1,30})/(?P<key>[a-zA-Z0-9]{20})/$', + 'register_confirm', + name='accounts-register_confirm'), ) urlpatterns += patterns('',