Opened 12 years ago

Closed 12 years ago

#18489 closed Uncategorized (invalid)

Unnecessary quotes cause NoReverseMatch Exception

Reported by: sverdlin@… 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: yes UI/UX: no

Description

The template for registration/login.html at https://docs.djangoproject.com/en/dev/topics/auth/ has the line:

<form method="post" action="{% url 'django.contrib.auth.views.login' %}">

This causes a NoReverseMatch Exception.

There should be no quotes around django.contrib.auth.views.login to prevent the error.

Change History (1)

comment:1 by Simon Charette, 12 years ago

Resolution: invalid
Status: newclosed

You are using Django development branch documentation with version 1.4,

The behaviour of the url template tag was changed in the upcoming version. You can read about it here in the Forwards compatibility section.

I'd suggest you add {% load url from future %} at the top of your template, this will ease the migration to 1.5

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