comparison polls/urls.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/polls/urls.py@ddd69a8e07c7
children 5ba2508939f7
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 """urls for the polls application"""
2 from django.conf.urls import patterns, url
3
4 urlpatterns = patterns('polls.views',
5 url(r'^$', 'poll_index', name='polls-main'),
6 url(r'^(?P<poll_id>\d+)/$', 'poll_detail', name='polls-detail'),
7 url(r'^(?P<poll_id>\d+)/vote/$', 'poll_vote', name='polls-vote'),
8 url(r'^delete_vote/$', 'poll_delete_vote', name='polls-delete_vote'),
9 )