1👍
✅
Just access it as you would any other Django variable:
<script language="JavaScript">
var mydata = "{{data}}";
document.write("Data is: " + mydata);
</script>
Source:stackexchange.com