Opened 8 years ago

Closed 8 years ago

Last modified 5 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: UI/UX:

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 Changed 8 years ago by Alex Gaynor

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 Changed 5 years ago by Jacob

milestone: 1.1 beta

Milestone 1.1 beta deleted

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