~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlpoll/urls.py

  • Committer: Holger Rapp
  • Date: 2009-03-28 12:03:48 UTC
  • Revision ID: sirver@kallisto.local-20090328120348-id7kvvww2nxhauwd
First draft version of wlpoll, a poll application

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python -tt
 
2
# encoding: utf-8
 
3
#
 
4
 
 
5
from django.conf.urls.defaults import *
 
6
import views
 
7
 
 
8
urlpatterns = patterns('', 
 
9
    url(r'(?P<poll_id>\d+)/$', views.view, name="wlpoll_view"),
 
10
    url(r'(?P<poll_id>\d+)/vote/(?P<next>.*)$', views.vote, name="wlpoll_vote"),
 
11
)
 
12