plateforme-tfjm2/apps/tournament/urls.py

19 lines
930 B
Python
Raw Normal View History

2020-04-29 14:26:52 +00:00
from django.urls import path
2020-04-29 23:43:12 +00:00
from django.views.generic import RedirectView
2020-04-29 14:26:52 +00:00
2020-04-29 15:58:11 +00:00
from .views import TournamentListView, TournamentDetailView, TeamDetailView
2020-04-29 14:26:52 +00:00
app_name = "tournament"
urlpatterns = [
path('list/', TournamentListView.as_view(), name="list"),
2020-04-29 23:43:12 +00:00
path("add/", RedirectView.as_view(pattern_name="index"), name="add"),
2020-04-29 14:59:59 +00:00
path('<int:pk>/', TournamentDetailView.as_view(), name="detail"),
2020-04-29 15:58:11 +00:00
path('team/<int:pk>/', TeamDetailView.as_view(), name="team_detail"),
2020-04-29 23:43:12 +00:00
path("add-organizer/", RedirectView.as_view(pattern_name="index"), name="add_organizer"),
path("solutions/", RedirectView.as_view(pattern_name="index"), name="solutions"),
path("all-solutions/", RedirectView.as_view(pattern_name="index"), name="all_solutions"),
path("syntheses/", RedirectView.as_view(pattern_name="index"), name="syntheses"),
path("all_syntheses/", RedirectView.as_view(pattern_name="index"), name="all_syntheses"),
2020-04-29 14:26:52 +00:00
]