X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..4c14e51225e284c5b81d53e7f6a5cd0f46ec4d05:/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'), )