Code

#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.

Attachments (0)

Change History (1)

comment:1 Changed 21 months ago by aastrand

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

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.