#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?
Note:
See TracTickets
for help on using tickets.
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.