Opened 9 years ago

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


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@… 9 years ago.
A patch changing the offending line in the docs

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by jacob@…

Attachment: doc_url_patch.diff added

A patch changing the offending line in the docs

comment:1 Changed 9 years ago by anonymous

Has patch: set

comment:2 Changed 9 years ago by Aymeric Augustin

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 :

See also the "Forwards compatibility" note :

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