예제 #1
0
파일: urls.py 프로젝트: adamslapins/velo.lv
    ManagePreNumberAssignCreate, ChangedNameList, ChangedNameCreate, ChangedNameUpdate
from manager.views.results_manage import ManageResultList, ManageResultUpdate
from team.views import TeamApply

urlpatterns = patterns('',
                       url(r'^competition/$', ManageCompetitionList.as_view(), name='competition_list'),
                       url(r'^competition/(?P<pk>\d+)/$', ManageCompetitionDetail.as_view(), name='competition'),

                       url(r'^competition/changedname/$', ChangedNameList.as_view(), name='changedname_list'),
                       url(r'^competition/changedname/(?P<pk2>\d+)/$', ChangedNameUpdate.as_view(), name='changedname'),
                       url(r'^competition/changedname/add/$', ChangedNameCreate.as_view(), name='changedname'),

                       url(r'^competition/(?P<pk>\d+)/team/$', ManageTeams.as_view(), name='team_list'),

                       url(r'^competition/(?P<pk>\d+)/team/(?P<pk2>\d+)/apply/$', ManageTeamApplyList.as_view(), name='team_apply_list'),
                       url(r'^competition/(?P<pk>\d+)/team/(?P<pk2>\d+)/apply/(?P<competition_pk>\d+)/$', TeamApply.as_view(), name='team_apply_list'),


                       url(r'^competition/(?P<pk>\d+)/team/applied/$', ManageTeamList.as_view(), name='applied_team_list'),
                       url(r'^competition/(?P<pk>\d+)/team/(?P<pk2>\d+)/edit/$', ManageTeamUpdate.as_view(), name='edit_team'),

                       url(r'^competition/(?P<pk>\d+)/team/participant/applied/$', ManageAppliedTeamMembersList.as_view(), name='team_applied_participant_list'),
                       url(r'^competition/(?P<pk>\d+)/participant/$', ManageParticipantList.as_view(), name='participant_list'),
                       url(r'^competition/(?P<pk>\d+)/number/$', ManageNumberList.as_view(), name='number_list'),
                       url(r'^competition/(?P<pk>\d+)/number/(?P<pk_number>\d+)/$', ManageNumberUpdate.as_view(), name='number'),

                       url(r'^competition/(?P<pk>\d+)/distance_admin/$', ManageDistanceAdminList.as_view(), name='distance_admin_list'),
                       url(r'^competition/(?P<pk>\d+)/distance_admin/(?P<pk2>\d+)/$', ManageDistanceAdminUpdate.as_view(), name='distance_admin'),


                       url(r'^competition/(?P<pk>\d+)/result/$', ManageResultList.as_view(), name='result_list'),
예제 #2
0
파일: urls.py 프로젝트: adamslapins/velo.lv
                       url(_(r'^password_reset/$'), 'django.contrib.auth.views.password_reset', name='password_reset',
                           kwargs={'post_reset_redirect': reverse_lazy('accounts:password_reset_done'),
                                   'template_name': 'registration/password_reset_form_velo.html',
                                   'password_reset_form': PasswordResetForm}),
                       url(_(r'^password_reset/done/$'), 'django.contrib.auth.views.password_reset_done',
                           name='password_reset_done',
                           kwargs={'template_name': 'registration/password_reset_done_velo.html'}),
                       url(_(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$'),
                           'django.contrib.auth.views.password_reset_confirm',
                           name='password_reset_confirm', kwargs={
                               'post_reset_redirect': reverse_lazy('accounts:password_reset_complete'),
                               'template_name': 'registration/password_reset_confirm_velo.html',
                               'set_password_form': SetPasswordFormCustom,
                           }),
                       url(_(r'^reset/done/$'), 'django.contrib.auth.views.password_reset_complete',
                           name='password_reset_complete', kwargs={
                               'template_name': 'registration/password_reset_complete_velo.html',
                           }),

                       url(_(r'^my_applications/$'), MyApplicationList.as_view(), name='applications'),
                       url(_(r'^my_team/$'), MyTeamList.as_view(), name='team_list'),
                       url(_(r'^my_team/add/$'), TeamCreateView.as_view(), name='team'),
                       url(_(r'^my_team/(?P<pk2>\d+)/$'), TeamUpdateView.as_view(), name='team'),

                       url(_(r'^my_team/(?P<pk2>\d+)/pay/$'), TeamPayView.as_view(), name='team_pay'),

                       url(_(r'^my_team/(?P<pk2>\d+)/apply/$'), TeamApplyList.as_view(), name='team_apply_list'),
                       url(_(r'^my_team/(?P<pk2>\d+)/apply/(?P<competition_pk>\d+)/$'), TeamApply.as_view(),
                           name='team_apply_list'),

)