from django.conf.urls import patterns, url
from poll import views
urlpatterns = patterns("",
    url(r"^$", views.index, name="index"),
    url(r"^(?P<poll_id>\d+)/$", views.detail, name="detail"),
    url(r"^(?P<poll_id>\d+)/details?/$", views.detail, name="detail"),
    # ex: /polls/5/results/
    url(r"^(?P<poll_id>\d+)/results/$", views.results, name="results"),
    # ex: /polls/5/vote/
    url(r"^(?P<poll_id>\d+)/vote/$", views.vote, name="vote"),
    )
