Opened 12 years ago
Closed 12 years ago
#18774 closed Bug (invalid)
incorrect template code for django.contrib.auth.views.login
Reported by: | 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
URL: https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login
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 %}
Note:
See TracTickets
for help on using tickets.
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.