﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18720	Code sample for views.html template causes NoReverseMatch error	anonymous	nobody	"The page in question is

https://docs.djangoproject.com/en/1.4/topics/auth/

The code sample for views.html will cause a NoReverseMatchError due to the single quotes in the argument to the bolded url tag below:

{% extends ""base.html"" %}
{% load url from future %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method=""post"" action=""'''{% url 'django.contrib.auth.views.login' %}'''"">
{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type=""submit"" value=""login"" />
<input type=""hidden"" name=""next"" value=""{{ next }}"" />
</form>

{% endblock %}

Removing the quotes fixes the error.

"	Uncategorized	closed	Documentation	1.4	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
