X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/ff9d51a145c153222e088a7c08d540ea61005395..refs/heads/master:/apps/quiz/urls.py diff --git a/apps/quiz/urls.py b/apps/quiz/urls.py index 7189846..17534d7 100644 --- a/apps/quiz/urls.py +++ b/apps/quiz/urls.py @@ -1,8 +1,12 @@ -from django.conf.urls.defaults import * +# This file is part of KOED-Quiz, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.urls import path +from . import views -urlpatterns = patterns('quiz.views', - url(r'^$', 'question', name='quiz'), - url(r'^q/(?P[^/]*)/$', 'question', name='quiz'), - url(r'^r/(?P[^/]*)/$', 'result', name='quiz_result'), -) +urlpatterns = [ + path('', views.question, name='quiz'), + path('q//', views.question, name='quiz'), + path('r//', views.result, name='quiz_result'), +]