accounts.views.UserProjectsView.as_view(), name='profile_projects'), url(r'^accounts/profile/(?P<pk>\d+)/themes$', accounts.views.UserThemesView.as_view(), name='profile_themes'), url(r'^accounts/profile/(?P<pk>\d+)/extensions$', accounts.views.UserExtensionsView.as_view(), name='profile_extensions'), url(r'^accounts/profile/edit$', login_required(UserUpdateView.as_view()), name='edit_profile'), url(r'^accounts/profile/backup/all-exams$', login_required(AllExamsView.as_view()), name='all_exams_download'), url(r'^accounts/profile/backup/all-questions$', login_required(AllQuestionsView.as_view()), name='all_questions_download'), ) if settings.CAN_CHANGE_PASSWORD: urlpatterns += patterns('', url(r'^accounts/profile/change-password$', login_required(ChangePasswordView.as_view()), name='change_password' ), ) if settings.ALLOW_REGISTRATION: urlpatterns += patterns('', url(r'^accounts/activate/complete/$', TemplateView.as_view(template_name='registration/activation_complete.html'),
auth_views.password_reset_complete, name='password_reset_complete'), url(r'^password/reset/done/$', auth_views.password_reset_done, name='password_reset_done'), url(r'^profile/(?P<pk>\d+)/$', UserProfileView.as_view(), name='view_profile'), url(r'^profile/edit$', login_required(UserUpdateView.as_view()), name='edit_profile'), url(r'^profile/backup/all-exams$', login_required(AllExamsView.as_view()), name='all_exams_download'), url(r'^profile/backup/all-questions$', login_required(AllQuestionsView.as_view()), name='all_questions_download'), ) if settings.CAN_CHANGE_PASSWORD: urlpatterns += patterns( '', url(r'^profile/change-password$', login_required(ChangePasswordView.as_view()), name='change_password'), ) if settings.ALLOW_REGISTRATION: urlpatterns += patterns( '', url(r'^activate/complete/$',