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 , 13 years ago
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The docs are reconfigured to build from the proper branches on GitHub.
Note:
See TracTickets
for help on using tickets.
Adding to the ticket:
In this regard, the documentation at https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url seems wrong, too.