﻿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
19392	Old-style url names (with dashes) throw confusing template traceback	Dan Loewenherz	nobody	"When migrating an existing project to Django 1.5 (one that has dashes in the URL names), I get a very confusing error in the template traceback. Namely:

{{{
TemplateSyntaxError at /
Could not parse the remainder: '-login' from 'account-login'
}}}

{{{
<li><a href='{% url account-login %}'>Create Account</a></li>
}}}

The culprit is in the `filter_raw_string` regex in django/template/base.py. When I change 'var_chars' to `""-\w\.""`(instead of `""\w\.""`, I get a more sensible error message:

{{{
NoReverseMatch at /
'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs.
}}}

I think the messaging here could be improved."	Cleanup/optimization	closed	Template system	1.5-beta-1	Release blocker	fixed			Accepted	0	0	0	0	0	0
