Opened 12 years ago
Closed 12 years ago
#18708 closed Bug (invalid)
Typo in Naming URL Patterns
Reported by: | newtonsbm | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | 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
In https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns
There is a typo in the example of using the named urls.
It is written:
{% url 'arch-summary' 1945 %} {% url 'full-archive' 2007 %}
And should be:
{% url arch-summary 1945 %} {% url full-archive 2007 %}
Without the single quotes.
Note:
See TracTickets
for help on using tickets.
You refer to the development version of the documentation, but you file a bug against version 1.4. This was actually updated to the present notation (with single quotes) recently in #18625.