-urlpatterns = patterns('quiz.views',
- url(r'^$', 'question', name='quiz'),
- url(r'^q/(?P<slug>[^/]*)/$', 'question', name='quiz'),
- url(r'^r/(?P<slug>[^/]*)/$', 'result', name='quiz_result'),
-)
+urlpatterns = [
+ path('', views.question, name='quiz'),
+ path('q/<slug>/', views.question, name='quiz'),
+ path('r/<slug>/', views.result, name='quiz_result'),
+]