There seems to be a lot of string manipulation taking place on these feed_urls. It appears the intention is to render them as a JS array. I think it would be better to ignore my comment above and just do self.feed_urls = feed_urls. Then here do something like the following, assuming simplejson has been imported into the template:


    var urls = ${simplejson.dumps(thing.feed_urls)};