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