[Answered ]-Dictionary passed to js not working

2👍

Ignore all the JavaScript. The key line in your problem is:

[30/Jul/2013 02:50:51] "GET /visualize/static/js/test.js HTTP/1.1" 404 2732

404 is the HTTP code for ‘file not found’, which means that you’re using the incorrect path to reference your JavaScript file. Fix that, and you may find that your solution then works – or, if not, at least breaks differently.

0👍

@Adrian is right about the error message, but I suspect that the problem you’re thinking of is caused by not putting quotes around {{name}} in test.html. Try:

<script type="text/javascript">
    var name='{{name}}';
</script>

Leave a comment