Opened 13 years ago

Closed 13 years ago

#15897 closed Bug (invalid)

Example login form in documentation uses URL incorrectly

Reported by: jacob@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In what I'm guessing is a holdover from a previous version (though I don't know), the call to the URL template tag in the example login form on the Authentication page puts quotes around "django.contrib.auth.views.login". This raises a NoReverseMatch. Removing the quotes makes it work perfectly.

A patch changing the line in documentation is attached.

(This is my first contribution to an open-source project ever, so I apologize if I'm doing it wrong.)

Attachments (1)

doc_url_patch.diff (517 bytes ) - added by jacob@… 13 years ago.
A patch changing the offending line in the docs

Download all attachments as: .zip

Change History (3)

by jacob@…, 13 years ago

Attachment: doc_url_patch.diff added

A patch changing the offending line in the docs

comment:1 by anonymous, 13 years ago

Has patch: set

comment:2 by Aymeric Augustin, 13 years ago

Resolution: invalid
Status: newclosed

The behavior of the url tag will change in Django 1.5, and the docs were updated to reflect this change. As far as I can tell, the current version is correct.

See the commit message here : http://code.djangoproject.com/changeset/14778/django/trunk/docs/topics/auth.txt

See also the "Forwards compatibility" note : http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url

Does your template include the {% load url from future %} line at the beginning? If not, that would explain your problem.

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