Skip to content

Commit

Permalink
Ch21: Fill in URL segments with redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jambonrose committed Jul 30, 2015
1 parent 954f641 commit 541375e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions user/urls.py
Expand Up @@ -12,6 +12,10 @@
DisableAccount, ResendActivationEmail)

password_urls = [
url(r'^$',
RedirectView.as_view(
pattern_name='dj-auth:pw_reset_start',
permanent=False)),
url(r'^change/$',
auth_views.password_change,
{'template_name':
Expand Down Expand Up @@ -73,6 +77,11 @@
url(r'^activate/resend/$',
ResendActivationEmail.as_view(),
name='resend_activation'),
url(r'^activate',
RedirectView.as_view(
pattern_name=(
'dj-auth:resend_activation'),
permanent=False)),
url(r'^create/$',
CreateAccount.as_view(),
name='create'),
Expand Down

0 comments on commit 541375e

Please sign in to comment.