Opened 5 years ago

Closed 5 years ago

#18262 closed Uncategorized (fixed)

{% url %} in sample template not working because of quotes

Reported by: schnippi Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: url, template, quotes
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The sample template at https://docs.djangoproject.com/en/1.4/topics/auth/#the-login-required-decorator does not work because of the quotes around the view.

Changing it to

{% url django.contrib.auth.views.login %}

will work.

Change History (3)

comment:1 Changed 5 years ago by schnippi

Adding to the ticket:

In this regard, the documentation at https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url seems wrong, too.

comment:2 Changed 5 years ago by Anssi Kääriäinen

Triage Stage: UnreviewedAccepted

It seems the 1.4 docs are built from SVN trunk head, not from 1.4 branch. The 1.4 branch seems to have the correct documentation.

comment:3 Changed 5 years ago by Aymeric Augustin

Resolution: fixed
Status: newclosed

The docs are reconfigured to build from the proper branches on GitHub.

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