from django.conf.urls import patterns, include, url
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^polls/$', 'polls.views.index'),
(r'^polls/(?P\d+)/$', 'polls.views.detail'),
(r'^polls/(?P\d+)/results/$', 'polls.views.results'),
(r'^polls/(?P\d+)/vote/$', 'polls.views.vote'),
# Examples:
# url(r'^$', 'testsite.views.home', name='home'),
# url(r'^testsite/', include('testsite.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
) |
0 コメント:
コメントを投稿