﻿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
20701	Using python dicts directly in javascript	tim0306+django@…	nobody	"I'm using Django to push some data from python into some javascript code. So I use RequestContext to set up the variables and hen use HttpResponse to render the template with the variables.

The javascript code (highcharts) follows a similar syntax as pythons dict, namely: 
name: 'Female',
color: 'rgba(223, 83, 83, .5)',
data: [[161.2, 51.6], [163.8, 67.3]]

So I tried to directly use a python dict as a context, but got the following result:
&#39;color&#39;: &#39;rgba(223, 83, 83, .5)&#39;
&#39;name&#39;: &#39;Female&#39;

The dict data makes it into the final html, but the quotes of the string literals are respresented by &#39;

It would be a great feature if the coupling from dict to template would work. To make this more generic maybe some preprocessing function could be defined that preps the dict data before it is pushed into the template.
"	New feature	closed	Uncategorized	1.5	Normal	duplicate			Unreviewed	0	0	0	0	0	0
