Opened 13 years ago

Closed 13 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 by schnippi, 13 years ago

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 by Anssi Kääriäinen, 13 years ago

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 by Aymeric Augustin, 13 years ago

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