plateforme-corres2math/apps/participation/urls.py

31 lines
1.8 KiB
Python
Raw Normal View History

2020-09-22 18:41:42 +00:00
from django.urls import path
2020-10-29 15:08:27 +00:00
from django.views.generic import TemplateView
2020-09-22 18:41:42 +00:00
2020-10-20 11:06:51 +00:00
from .views import CalendarView, CreateTeamView, JoinTeamView, MyParticipationDetailView, MyTeamDetailView, \
ParticipationDetailView, PhaseUpdateView, SetParticipationReceiveParticipationView, \
SetParticipationSendParticipationView, TeamAuthorizationsView, TeamDetailView, TeamLeaveView, TeamUpdateView, \
UploadVideoView
2020-09-22 18:41:42 +00:00
app_name = "participation"
urlpatterns = [
path("create_team/", CreateTeamView.as_view(), name="create_team"),
path("join_team/", JoinTeamView.as_view(), name="join_team"),
2020-09-24 08:21:50 +00:00
path("team/", MyTeamDetailView.as_view(), name="my_team_detail"),
path("team/<int:pk>/", TeamDetailView.as_view(), name="team_detail"),
2020-09-24 09:15:54 +00:00
path("team/<int:pk>/update/", TeamUpdateView.as_view(), name="update_team"),
path("team/<int:pk>/authorizations/", TeamAuthorizationsView.as_view(), name="team_authorizations"),
2020-10-20 14:08:42 +00:00
path("team/leave/", TeamLeaveView.as_view(), name="team_leave"),
2020-09-27 12:32:05 +00:00
path("detail/", MyParticipationDetailView.as_view(), name="my_participation_detail"),
path("detail/<int:pk>/", ParticipationDetailView.as_view(), name="participation_detail"),
path("detail/upload-video/<int:pk>/", UploadVideoView.as_view(), name="upload_video"),
2020-10-31 11:51:49 +00:00
path("detail/<int:pk>/receive-participation/", SetParticipationReceiveParticipationView.as_view(),
name="participation_receive_participation"),
path("detail/<int:pk>/send-participation/", SetParticipationSendParticipationView.as_view(),
name="participation_send_participation"),
2020-10-20 11:06:51 +00:00
path("calendar/", CalendarView.as_view(), name="calendar"),
2020-10-20 11:14:02 +00:00
path("calendar/<int:pk>/", PhaseUpdateView.as_view(), name="update_phase"),
2020-10-29 15:08:27 +00:00
path("chat/", TemplateView.as_view(template_name="participation/chat.html"), name="chat")
2020-09-22 18:41:42 +00:00
]