Opened 6 years ago

Closed 6 years ago

Last modified 4 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 6 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 4 years ago by jacob

  • milestone 1.1 beta deleted

Milestone 1.1 beta deleted

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