parse django variable to javascript code example
Example: access django template variable in javascript
<script type="text/javascript">
var a = "{{someDjangoVariable}}";
</script>
<script type="text/javascript">
var a = "{{someDjangoVariable}}";
</script>