mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 04:44:19 +01:00
17 lines
591 B
Python
17 lines
591 B
Python
from django.urls import path, register_converter
|
|
|
|
from tvdt.converters import SeasonCodeConverter
|
|
|
|
from .converters import CandidateConverter
|
|
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"),
|
|
]
|