Opened 7 years ago

Closed 7 years ago

#18774 closed Bug (invalid)

incorrect template code for django.contrib.auth.views.login

Reported by: sjl@… 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



The docs contain example code with the following content

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

This doesn't work. It should be inserted without the quotes instead, like so

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

Change History (1)

comment:1 Changed 7 years ago by Aymeric Augustin

Resolution: invalid
Status: newclosed

You are likely reading development version documentation while using a version of django <= 1.4.

The old behaviour of the url template tag will be officially deprecated in django 1.5 following the deprecation process described in the django 1.3 release note.

You should convert your templates to use the new behaviour by adding the {% load url from future %} statement at the top of then.

Thanks for reporting anyway.

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