Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#10520 closed (invalid)

Possible doc error

Reported by: kpeters Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

http://docs.djangoproject.com/en/dev/topics/http/urls/

Example at bottom of page:

urlpatterns = patterns(,

url(r'archive/(\d{4})/$', archive, name="full-archive"),
url(r'
archive-summary/(\d{4})/$', archive, {'summary': True}, "arch-summary"),

)

Would this not require a 'name=' in front of "arch-summary", just like in the line above it?

Change History (2)

comment:1 by Alex Gaynor, 16 years ago

Resolution: invalid
Status: newclosed

No, it doesn't, the name is the 4th parameter to url, you aren't required to use kwargs. In the future please don't use the ticket tracker to ask questions.

comment:2 by Jacob, 13 years ago

milestone: 1.1 beta

Milestone 1.1 beta deleted

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