-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathurls.py
More file actions
22 lines (17 loc) · 1016 Bytes
/
urls.py
File metadata and controls
22 lines (17 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from django.urls import path
from . import views
app_name = "competitions"
urlpatterns = [
# path('', views.CompetitionList.as_view(), name="list"),
path('', views.CompetitionManagement.as_view(), name="management"),
path('<int:pk>/', views.CompetitionDetail.as_view(), name="detail"),
path('create/', views.CompetitionCreateForm.as_view(), name="create"),
path('edit/<int:pk>/', views.CompetitionUpdateForm.as_view(), name="edit"),
path('upload/', views.CompetitionUpload.as_view(), name="upload"),
path('public/', views.CompetitionPublic.as_view(), name="public"),
path('<int:pk>/detailed_results/<int:submission_id>/', views.CompetitionDetailedResults.as_view(), name="detailed_results"),
# Groups
path('<int:pk>/groups/create/', views.competition_create_group, name='competition_create_group'),
path('<int:pk>/groups/<int:group_id>/update/', views.competition_update_group),
path('<int:pk>/groups/<int:group_id>/delete/', views.competition_delete_group),
]