view=LoginView.as_view(), name='login', ), url( regex=r'^account/two_factor/setup/$', view=SetupView.as_view(), name='setup', ), url( regex=r'^account/two_factor/setup/complete/$', view=SetupCompleteView.as_view(), name='setup_complete', ), url( regex=r'^account/two_factor/backup/tokens/$', view=BackupTokensView.as_view(), name='backup_tokens', ), url( regex=r'^account/two_factor/backup/phone/register/$', view=PhoneSetupView.as_view(), name='phone_create', ), url( regex=r'^account/two_factor/backup/phone/unregister/(?P<pk>\d+)/$', view=PhoneDeleteView.as_view(), name='phone_delete', ), ) twilio = patterns(
teacher_class_password_reset from portal.views.teacher.home import teacher_home from portal.views.email import send_new_users_report js_info_dict = { 'packages': ('conf.locale',), } two_factor_patterns = [ url(r'^account/login/$', custom_2FA_login, name='login'), url(r'', include('two_factor.urls', 'two_factor')), url(r'^account/two_factor/setup/$', SetupView.as_view(), name='setup'), url(r'^account/two_factor/qrcode/$', QRGeneratorView.as_view(), name='qr'), url(r'^account/two_factor/setup/complete/$', SetupCompleteView.as_view(), name='setup_complete'), url(r'^account/two_factor/backup/tokens/$', teacher_verified(BackupTokensView.as_view()), name='backup_tokens'), url(r'^account/two_factor/$', teacher_verified(ProfileView.as_view()), name='profile'), url(r'^account/two_factor/disable/$', teacher_verified(DisableView.as_view()), name='disable'), ] urlpatterns = patterns( '', url(r'^favicon\.ico$', RedirectView.as_view(url='/static/portal/img/favicon.ico', permanent=True)), url(r'^$', home_view, name='home'), url(r'^teach/$', teach, name='teach'), url(r'^play/$', play, name='play'), url(r'^about/$', TemplateView.as_view(template_name='portal/about.html'), name='about'), url(r'^help/$', TemplateView.as_view(template_name='portal/help-and-support.html'),
SetupView.as_view(), name='setup', ), path( 'account/two_factor/qrcode/', QRGeneratorView.as_view(), name='qr', ), path( 'account/two_factor/setup/complete/', SetupCompleteView.as_view(), name='setup_complete', ), path( 'account/two_factor/backup/tokens/', BackupTokensView.as_view(), name='backup_tokens', ), path( 'account/two_factor/backup/phone/register/', PhoneSetupView.as_view(), name='phone_create', ), path( 'account/two_factor/backup/phone/unregister/<int:pk>/', PhoneDeleteView.as_view(), name='phone_delete', ), path( 'account/two_factor/manage_keys/', ManageKeysView.as_view(),
success_url='setup_complete', qrcode_url='qr'), name='setup'), path( 'two_factor/qrcode/', QRGeneratorView.as_view(), name='qr', ), path( 'two_factor/setup/complete/', SetupCompleteView.as_view(template_name='mfa/setup_complete.html'), name='setup_complete', ), path( 'two_factor/backup/tokens/', BackupTokensView.as_view(template_name='mfa/backup_tokens.html', success_url='backup_tokens'), name='backup_tokens', ), path( 'two_factor/backup/phone/register/', PhoneSetupView.as_view(template_name='mfa/phone_register.html'), name='phone_create', ), path( 'account/two_factor/backup/phone/unregister/<int:pk>/', PhoneDeleteView.as_view(), name='phone_delete', ), path( 'account/two_factor/disable/', view=DisableView.as_view(template_name='mfa/disable.html'),
organisation_kick_new, organisation_toggle_admin_new, teacher_disable_2FA_new js_info_dict = { 'packages': ('conf.locale', ), } two_factor_patterns = [ url(r'^account/login/$', custom_2FA_login, name='login'), url(r'', include('two_factor.urls', 'two_factor')), url(r'^account/two_factor/setup/$', SetupView.as_view(), name='setup'), url(r'^account/two_factor/qrcode/$', QRGeneratorView.as_view(), name='qr'), url(r'^account/two_factor/setup/complete/$', SetupCompleteView.as_view(), name='setup_complete'), url(r'^account/two_factor/backup/tokens/$', teacher_verified(BackupTokensView.as_view()), name='backup_tokens'), url(r'^account/two_factor/$', teacher_verified(ProfileView.as_view()), name='profile'), url(r'^account/two_factor/disable/$', teacher_verified(DisableView.as_view()), name='disable'), ] urlpatterns = patterns( '', url( r'^favicon\.ico$', RedirectView.as_view(url='/static/portal/img/favicon.ico', permanent=True)),
js_info_dict = {"packages": ("conf.locale",)} two_factor_patterns = [ url(r"^account/login/$", custom_2FA_login, name="login"), url(r"", include("two_factor.urls", "two_factor")), url(r"^account/two_factor/setup/$", SetupView.as_view(), name="setup"), url(r"^account/two_factor/qrcode/$", QRGeneratorView.as_view(), name="qr"), url( r"^account/two_factor/setup/complete/$", SetupCompleteView.as_view(), name="setup_complete", ), url( r"^account/two_factor/backup/tokens/$", teacher_verified(BackupTokensView.as_view()), name="backup_tokens", ), url( r"^account/two_factor/$", teacher_verified(ProfileView.as_view()), name="profile", ), url( r"^account/two_factor/disable/$", teacher_verified(DisableView.as_view()), name="disable", ), ]
teacher_print_reminder_cards, teacher_accept_student_request, teacher_reject_student_request, teacher_class_password_reset, ) from portal.views.teacher.home import teacher_home js_info_dict = {"packages": ("conf.locale",)} two_factor_patterns = [ url(r"^account/login/$", custom_2FA_login, name="login"), url(r"", include("two_factor.urls", "two_factor")), url(r"^account/two_factor/setup/$", SetupView.as_view(), name="setup"), url(r"^account/two_factor/qrcode/$", QRGeneratorView.as_view(), name="qr"), url(r"^account/two_factor/setup/complete/$", SetupCompleteView.as_view(), name="setup_complete"), url(r"^account/two_factor/backup/tokens/$", teacher_verified(BackupTokensView.as_view()), name="backup_tokens"), url(r"^account/two_factor/$", teacher_verified(ProfileView.as_view()), name="profile"), url(r"^account/two_factor/disable/$", teacher_verified(DisableView.as_view()), name="disable"), ] urlpatterns = patterns( "", url(r"^favicon\.ico$", RedirectView.as_view(url="/static/portal/img/favicon.ico", permanent=True)), url(r"^$", home_view, name="home"), url(r"^teach/$", teach, name="teach"), url(r"^play/$", play, name="play"), url(r"^about/$", TemplateView.as_view(template_name="portal/about.html"), name="about"), url(r"^help/$", TemplateView.as_view(template_name="portal/help-and-support.html"), name="help"), url(r"^contact/$", contact, name="contact"), url(r"^terms/$", TemplateView.as_view(template_name="portal/terms.html"), name="terms"),
url(r'^register/$', views.register, name='register'), url(r'^register/complete/$', views.register_complete, name='register_complete'), url(r'^register/activate/(?P<activation_token>[-:\w]+)/$', views.register_activate, name='register_activate'), url(r'^password_reset/$', auth_views.password_reset, { 'template_name': 'password_reset.html' }, name='password_reset'), url(r'^password_reset/done/$', auth_views.password_reset_done, { 'template_name': 'password_reset_done.html' }, name='password_reset_done'), url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.password_reset_confirm, { 'template_name': 'password_reset_confirm.html' }, name='password_reset_confirm'), url(r'^reset/done/$', auth_views.password_reset_complete, { 'template_name': 'password_reset_complete.html' }, name='password_reset_complete'), url(r'^login/$', PleioLoginView.as_view(), name='login'), url(r'^logout/$', views.logout, name='logout'), url(r'^profile/$', views.profile, name='profile'), url(r'^accept_previous_logins/(?P<acceptation_token>[-:\w]+)/$', views.accept_previous_login, name='accept_previous_login'), url(r'^account/login/$', PleioLoginView.as_view(), name='login'), url(r'^account/two_factor/setup/$', views.tf_setup, name='tf_setup'), url(r'^account/two_factor/setup/complete/$', view=SetupCompleteView.as_view(template_name = 'setup_complete.html'), name='setup_complete' ), url(r'^account/two_factor/$', view=ProfileView.as_view(template_name='tf_profile.html'), name='tf_profile' ), url(r'^account/two_factor/backup/tokens/$', view=BackupTokensView.as_view(template_name='backup_tokens.html'), name = 'backup_tokens'), url(r'^account/two_factor/disable/$', view=DisableView.as_view(template_name='tf_disable.html'), name='disable'), url(r'^account/sessions/$', view=SessionListView.as_view(template_name='session_list.html'), name='session_list'), url(r'^oauth/v2/authorize$', oauth2_views.AuthorizationView.as_view(), name='authorize'), url(r'^oauth/v2/token$', oauth2_views.TokenView.as_view(), name='token'), url(r'^oauth/v2/revoke_token$', oauth2_views.RevokeTokenView.as_view(), name='revoke-token'), url(r'^api/users/me$', api_views.me, name='me'), url(r'^admin/', admin.site.urls), url(r'^$', views.home, name='home') ] tf_urls = [ url(r'', include('two_factor.urls', 'two_factor')) ] us_urls = [ url(r'', include('user_sessions.urls', 'user_sessions'))