mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 04:44:19 +01:00
Add basic quiz functionality
This commit is contained in:
14
tvdt/quiz/urls.py
Normal file
14
tvdt/quiz/urls.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.urls import path, register_converter
|
||||
|
||||
from .converters import CandidateConverter, SeasonCodeConverter
|
||||
from .views import SelectSeasonView
|
||||
from .views.questionview import QuestionView
|
||||
from .views.enternameview import EnterNameView
|
||||
|
||||
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"),
|
||||
]
|
||||
Reference in New Issue
Block a user