Mercurial > public > sg101
diff gpp/polls/urls.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 8acf5be27f18 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/polls/urls.py Mon Apr 06 02:43:12 2009 +0000 @@ -0,0 +1,9 @@ +"""urls for the polls application""" +from django.conf.urls.defaults import * + +urlpatterns = patterns('polls.views', + url(r'^$', 'poll_index', name='polls-main'), + (r'^(?P<poll_id>\d+)/$', 'poll_detail'), + (r'^(?P<poll_id>\d+)/results/$', 'poll_results'), + (r'^(?P<poll_id>\d+)/vote/$', 'poll_vote'), +)