from django.conf.urls import url

from . import views


app_name = 'polls'


urlpatterns = [
    # ex: /polls/
    url(r'^$', views.index, name='index'),
    # ex: /polls/5/
    url(r'^(?P<question_id>[0-9]+)/$', views.detail, name='detail'),
    # ex: /polls/5/results/
    url(r'^(?P<question_id>[0-9]+)/results/$', views.results, name='results'),
    # ex: /polls/5/vote/
    url(r'^(?P<question_id>[0-9]+)/vote/$', views.vote, name='vote'),
    
    url(r'^display/$', views.display_data, name='test-display'),
    url(r'^create/$', views.create_question, name='create-question'),
    url(r'^_create/$', views.create, name='create'),
]