X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..64ce3bd7588fe58d37f94a064721f6108f1ba95b:/apps/quiz/urls.py diff --git a/apps/quiz/urls.py b/apps/quiz/urls.py index ae5c683..6241cd8 100644 --- a/apps/quiz/urls.py +++ b/apps/quiz/urls.py @@ -1,8 +1,12 @@ -from django.conf.urls.defaults import * +# -*- 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 urlpatterns = patterns('quiz.views', url(r'^$', 'question', name='quiz'), - url(r'^q/(?P[-a-z0-9]*)/$', 'question', name='quiz'), - url(r'^r/(?P[-a-z0-9]*)/$', 'result', name='quiz_result'), + url(r'^q/(?P[^/]*)/$', 'question', name='quiz'), + url(r'^r/(?P[^/]*)/$', 'result', name='quiz_result'), )