ContestUserSearchSelect2View, OrganizationSelect2View, ProblemSelect2View, TicketUserSelect2View, \ UserSearchSelect2View, UserSelect2View from judge.views.widgets import martor_image_uploader admin.autodiscover() register_patterns = [ path('activate/complete/', TitledTemplateView.as_view( template_name='registration/activation_complete.html', title=_('Activation Successful!')), name='registration_activation_complete'), # Let's use <str:activation_key>, because a bad activation key should still get to the view; # that way, it can return a sensible "invalid key" message instead of a confusing 404. path('activate/<str:activation_key>/', ActivationView.as_view(), name='registration_activate'), path('register/', RegistrationView.as_view(), name='registration_register'), path('register/complete/', TitledTemplateView.as_view( template_name='registration/registration_complete.html', title=_('Registration Completed')), name='registration_complete'), path('register/closed/', TitledTemplateView.as_view( template_name='registration/registration_closed.html', title=_('Registration Not Allowed')), name='registration_disallowed'), path('login/', user.CustomLoginView.as_view(), name='auth_login'), path('logout/', user.UserLogoutView.as_view(), name='auth_logout'),
from judge.views.select2 import UserSelect2View, OrganizationSelect2View, ProblemSelect2View, CommentSelect2View, \ ContestSelect2View, UserSearchSelect2View, ContestUserSearchSelect2View, TicketUserSelect2View, AssigneeSelect2View admin.autodiscover() register_patterns = [ url(r'^activate/complete/$', TitledTemplateView.as_view(template_name='registration/activation_complete.jade', title='Activation Successful!'), name='registration_activation_complete'), # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the view; # that way it can return a sensible "invalid key" message instead of a # confusing 404. url(r'^activate/(?P<activation_key>\w+)/$', ActivationView.as_view(title='Activation key invalid'), name='registration_activate'), url(r'^register/$', RegistrationView.as_view(title='Register'), name='registration_register'), url(r'^register/complete/$', TitledTemplateView.as_view(template_name='registration/registration_complete.jade', title='Registration Completed'), name='registration_complete'), url(r'^register/closed/$', TitledTemplateView.as_view(template_name='registration/registration_closed.html', title='Registration not allowed'), name='registration_disallowed'), url(r'^login/$', auth_views.LoginView.as_view( template_name='registration/login.jade', extra_context={'title': _('Login')},
from judge.views.select2 import UserSelect2View, OrganizationSelect2View, ProblemSelect2View, CommentSelect2View, \ ContestProfileSelect2View, ContestSelect2View admin.autodiscover() register_patterns = [ url(r'^activate/complete/$', TitledTemplateView.as_view(template_name='registration/activation_complete.jade', title='Activation Successful!'), name='registration_activation_complete'), # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the view; # that way it can return a sensible "invalid key" message instead of a # confusing 404. url(r'^activate/(?P<activation_key>\w+)/$', ActivationView.as_view(title='Activation key invalid'), name='registration_activate'), url(r'^register/$', RegistrationView.as_view(title='Register'), name='registration_register'), url(r'^register/complete/$', TitledTemplateView.as_view(template_name='registration/registration_complete.jade', title='Registration Completed'), name='registration_complete'), url(r'^register/closed/$', TitledTemplateView.as_view(template_name='registration/registration_closed.html', title='Registration not allowed'), name='registration_disallowed'), url(r'^login/$', auth_views.login, {'template_name': 'registration/login.jade', 'extra_context': {'title': 'Login'}, 'authentication_form': CustomAuthenticationForm},