Opened 13 years ago

Closed 13 years ago

#17731 closed Uncategorized (invalid)

Tutorial part 3 :regex for polls/index.html doesn't match

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords: tutorial, url patterns
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Hi,

In https://docs.djangoproject.com/en/1.3/intro/tutorial03/ the url patterns doesn't search for polls/index.html
Instead of

urlpatterns = patterns(,

url(r'polls/$', 'polls.views.index'),
#..... other urls

we should have

urlpatterns = patterns(,

url(r'polls/index.html$', 'polls.views.index'),
#..... other urls

Change History (1)

comment:1 by Russell Keith-Magee, 13 years ago

Resolution: invalid
Status: newclosed

No, it shouldn't. The URL pattern (or the actual URL, for that matter) shouldn't include any reference to a HTML file. In fact, tutorial 3 includes a specific admonition that such an idea would be "silly".

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