Opened 3 years ago

Closed 3 years ago

#20627 closed Uncategorized (invalid)

Uncomplete documentation

Reported by: jjehanne.utc@… 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: no UI/UX: no


Correct me if I'm wrong, but while writing basic views in tutorial 3, It's missing the part where you edit the mysite/ file and the explanation that goes with it..

Edit mysite/ so it looks like this:

Code highlighting:

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

from django.contrib import admin

urlpatterns = patterns('',
    url(r'^polls/$', 'polls.views.index'),
    url(r'^polls/(?P<poll_id>\d+)/$', 'polls.views.detail'),
    url(r'^polls/(?P<poll_id>\d+)/results/$', 'polls.views.results'),
    url(r'^polls/(?P<poll_id>\d+)/vote/$', ''),
    url(r'^admin/', include(,

Change History (1)

comment:1 Changed 3 years ago by Baptiste Mispelon

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed


In the "Write your first view" part [1], the tutorial tells you to edit mysite/ and has the following line:

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

After that, you only need to be editing polls/, which the tutorial instructs you too.

Note that mysite/ and polls/ are two different files, which I suspect may be the source of your confusion.



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