Opened 3 years ago

Closed 3 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

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 %}

Change History (1)

comment:1 Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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