Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 560 Bytes
from django.conf.urls.defaults import *
from test_utils.tests.polls.models import Poll, Choice
info_dict = {
'queryset': Poll.objects.all(),
}
urlpatterns = patterns('',
(r'^$', 'django.views.generic.list_detail.object_list', info_dict),
(r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict),
url(r'^(?P<object_id>\d+)/results/$', 'django.views.generic.list_detail.object_detail', dict(info_dict, template_name='polls/results.html'), 'poll_results'),
(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),
)
Something went wrong with that request. Please try again.