[Django] #20954: Tutorial Doco Error

1 view
Skip to first unread message

Django

unread,
Aug 22, 2013, 12:58:39 AM8/22/13
to django-...@googlegroups.com
#20954: Tutorial Doco Error
-------------------------------+--------------------
Reporter: n2cheval@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
On the page "https://docs.djangoproject.com/en/1.5/intro/tutorial03/"
at the section "Write your first view"

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

First
from django.conf.urls import patterns, url

from polls import views

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

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

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
url(r'^polls/', include('polls.urls')),
url(r'^admin/', include(admin.site.urls)),
)

The "final" second version errors.

--
Ticket URL: <https://code.djangoproject.com/ticket/20954>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 22, 2013, 1:04:26 AM8/22/13
to django-...@googlegroups.com
#20954: Tutorial Doco Error
-------------------------------+--------------------------------------
Reporter: n2cheval@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.5
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by n2cheval@…):

* status: new => closed
* needs_better_patch: => 0
* resolution: => fixed
* needs_tests: => 0
* needs_docs: => 0


Comment:

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

Sorry.

--
Ticket URL: <https://code.djangoproject.com/ticket/20954#comment:1>

Reply all
Reply to author
Forward
0 new messages