X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/b16cd2217f48dd418def72c91ba289b29a781762..refs/heads/master:/apps/quiz/urls.py diff --git a/apps/quiz/urls.py b/apps/quiz/urls.py index 8d43f02..17534d7 100644 --- a/apps/quiz/urls.py +++ b/apps/quiz/urls.py @@ -1,12 +1,12 @@ -# -*- coding: utf-8 -*- # 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.conf.urls.defaults import * +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'), +]