List variable containing string not getting rendered in Django Template

I have a list of names, which I render at two different places in a HTML at one place it works fine, the other time it disappears.

names= ['a','b','c','d']

In the HTML code I am printing


this gives me the correct results. When I use the same string in a javascript it stops working but if I replace the variable by


then it works fine.


What do you mean 'in a javascript'? Is that in a template being rendered by Django, and if not how are you expecting it to be evaluated?

Need Your Help

How to add icons/images as indicators rather than list circles in bootstrap3 carousel slider

css3 twitter-bootstrap twitter-bootstrap-3

Hi i am trying to make a bootstrap3 carousel slider and I want to add some images as the slide indicators instead of the list default circles.

Is there an API or any other method to automate the submission process?

iphone app-store xcodebuild

I have a number of apps which are similar in functionality and UI. I create the user interface by picking up variables from a .plist file. For instance, I save the source of the API from where I pi...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.