Kaydet (Commit) 4cd24bb6 authored tarafından Tim Graham's avatar Tim Graham

Fixed #25934 -- Added missing app_name in tutorial 4's urls.py.

üst 5005b527
...@@ -241,6 +241,7 @@ First, open the ``polls/urls.py`` URLconf and change it like so: ...@@ -241,6 +241,7 @@ First, open the ``polls/urls.py`` URLconf and change it like so:
from . import views from . import views
app_name = 'polls'
urlpatterns = [ urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'), url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'), url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment