Obtenha a variável de modelo no código JavaScript
<script type="text/javascript">
var a = "{{someDjangoVariable}}";
</script>
Mushy Mockingbird
<script type="text/javascript">
var a = "{{someDjangoVariable}}";
</script>