﻿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
8897	Peculiarity in url template tag - lookup fails when view name enclosed in single quotes	jacob.martin@…	nobody	"Does what it says on the tin.

Old, non-working code example:

urls.py

{{{
urlpatterns = patterns('',
    url(r'^servicemanagement/status/$', 'nwwcfh.servicestatus.views.map_details', name='map-details'),
}}}

intended template usage:

{{{
<li><a href=""{% url map-details %}"" title=""View an map of current service status"">Service Status</a></li>
}}}

This fails, giving one of two errors (seemingly at random): either ""there is no module named urls"" or a message complaining that ""map-details"" can't be reversed.

Fix:

{{{
urlpatterns = patterns("""",
    url(r'^servicemanagement/status/$', ""nwwcfh.servicestatus.views.map_details"", name=""map-details""),
}}}

(i.e. use double quotes instead of single quotes )

Why does this work? Don't know. But it took me the best part of a day to figure this out!
"		closed	Template system	1.0		invalid			Unreviewed	0	0	0	0	0	0
