Files
TijdVoorDeTest/tvdt/quiz/urls.py
2024-11-25 19:22:45 +01:00

15 lines
563 B
Python

from django.urls import path, register_converter
from .converters import CandidateConverter, SeasonCodeConverter
from .views import SelectSeasonView
from .views.enternameview import EnterNameView
from .views.questionview import QuestionView
register_converter(SeasonCodeConverter, "season")
register_converter(CandidateConverter, "candidate")
urlpatterns = [
path("", SelectSeasonView.as_view(), name="home"),
path("<season:season>/", EnterNameView.as_view(), name="quiz"),
path("<candidate:candidate>/", QuestionView.as_view(), name="question"),
]