Mercurial > public > sg101
comparison polls/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | ee87ea74d46b |
children |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """urls for the polls application""" | 1 """urls for the polls application""" |
2 from django.conf.urls import patterns, url | 2 from django.conf.urls import url |
3 | 3 |
4 urlpatterns = patterns('polls.views', | 4 import polls.views |
5 url(r'^$', 'poll_index', name='polls-main'), | 5 |
6 url(r'^(?P<poll_id>\d+)/$', 'poll_detail', name='polls-detail'), | 6 |
7 url(r'^(?P<poll_id>\d+)/vote/$', 'poll_vote', name='polls-vote'), | 7 urlpatterns = [ |
8 url(r'^delete_vote/$', 'poll_delete_vote', name='polls-delete_vote'), | 8 url(r'^$', polls.views.poll_index, name='polls-main'), |
9 ) | 9 url(r'^(?P<poll_id>\d+)/$', polls.views.poll_detail, name='polls-detail'), |
10 url(r'^(?P<poll_id>\d+)/vote/$', polls.views.poll_vote, name='polls-vote'), | |
11 url(r'^delete_vote/$', polls.views.poll_delete_vote, name='polls-delete_vote'), | |
12 ] |