js variable template django 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>