X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/a384028a39ea0546549ce29b4020e73a71f6b7c7..refs/heads/master:/apps/quiz/urls.py?ds=sidebyside diff --git a/apps/quiz/urls.py b/apps/quiz/urls.py index 6241cd8..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 import patterns, url +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'), +]