how to send variable from javascript to django template 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>