aboutsummaryrefslogtreecommitdiffstats
path: root/account/urls.py
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-21 20:56:25 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-21 20:56:25 +0800
commit202b0633c975c75af87538e42c25e16fa9e9cd17 (patch)
treee6bfe745134df71e36bf0d3e9ef1a130cd5d9ace /account/urls.py
parent83bd9f81631424694b95a50e923e3f6933f67141 (diff)
downloaddjango-skaschool-202b0633c975c75af87538e42c25e16fa9e9cd17.tar.bz2
* added 'ResendEmailForm' forms
* implemented 'ResendEmailView' class-based view and templates * added js code 'account_email_resend.js' Warning: cannot load static file located in app directory
Diffstat (limited to 'account/urls.py')
-rw-r--r--account/urls.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/account/urls.py b/account/urls.py
index e193772..b17abd5 100644
--- a/account/urls.py
+++ b/account/urls.py
@@ -12,7 +12,7 @@ from django.contrib.auth.decorators import login_required
from registration.backends.default.views import ActivationView
from registration.backends.default.views import RegistrationView
-from account.views import ProfileView, UpdateProfileView, ListApprovedView
+from account.views import ResendEmailView, ProfileView, UpdateProfileView, ListApprovedView
from account.forms import UserRegForm
@@ -38,6 +38,14 @@ urlpatterns = patterns('',
url(r'^logout/$', 'django.contrib.auth.views.logout',
{'template_name': 'account/logout.html'},
name='logout'),
+ # resend activate email
+ url(r'^email/resend/$',
+ ResendEmailView.as_view(),
+ name='email_resend'),
+ # resend activate email done
+ url(r'^email/resend/done/$',
+ TemplateView.as_view(template_name='account/email_resend_done.html'),
+ name='email_resend_done'),
# change password
# If 'post_change_redirect' not provided,
# then redirect to url 'password_change_done'.