Source

django-poll-system / poll / urls.py

Full commit
1
2
3
4
5
6
7
from django.conf.urls.defaults import patterns, url
from poll.ajax import poll_ajax_vote, poll_ajax_result

urlpatterns = patterns('',
    url(r'^vote/(?P<poll_pk>\d)$', poll_ajax_vote, name='poll_ajax_vote'),
    url(r'^result/(?P<poll_pk>\d)$', poll_ajax_result, name='poll_ajax_result'),
)