Loading docs/intro/tutorial04.txt +1 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,7 @@ First, open the ``polls/urls.py`` URLconf and change it like so: from . import views app_name = 'polls' urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'), Loading Loading
docs/intro/tutorial04.txt +1 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,7 @@ First, open the ``polls/urls.py`` URLconf and change it like so: from . import views app_name = 'polls' urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'), Loading