mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 04:44:19 +01:00
18 lines
615 B
Python
18 lines
615 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="index"),
|
|
path("<season:season>/", EnterNameView.as_view(), name="enter_name"),
|
|
path("<candidate:candidate>/", QuestionView.as_view(), name="question"),
|
|
# path("<>")
|
|
]
|