I'm trying to send an Array to a template and then access it using JavaScript.
Here's what I have in my views.py:
arry1 = ['Str',500,20]
return render_to_response('test.html', {'array1': arry1})
And this is how I'm accessing it in my template:
var array1 = {{ array1 }};
However, when I check the website, it shows:
var array1 = ['Str',500,20];
What changes do I need to make?