Opened 5 years ago

Closed 5 years ago

#20954 closed Bug (fixed)

Tutorial Doco Error

Reported by: n2cheval@… Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


On the page ""
at the section "Write your first view"

It says to update the same file "polls/" twice, but with completely different code, even through it says to only add the "include".

from django.conf.urls import patterns, url

from polls import views

urlpatterns = patterns(,

url(r'$', views.index, name='index')


from django.conf.urls import patterns, include, url

from django.contrib import admin

urlpatterns = patterns(,

url(r'polls/', include('polls.urls')),
admin/', include(,


The "final" second version errors.

Change History (1)

comment:1 Changed 5 years ago by n2cheval@…

Resolution: fixed
Status: newclosed

Didn't read the detail that it was the same file in different folders.


Note: See TracTickets for help on using tickets.
Back to Top