Source

JythonBook / src / chapter14 / tour / pollsite / polls / urls.py

1
2
3
4
5
6
7
8
9
from django.conf.urls.defaults import *

urlpatterns = patterns('pollsite.polls.views',
    (r'^$', 'index'),
    (r'^(\d+)/$', 'detail'),
    (r'^(\d+)/vote/$', 'vote'),
    (r'^(\d+)/results/$', 'results'),
)