1๐
โ
If I got your question right, the easiest (but not the most flexible and secure) solution would be to render the js variables just in the Django template:
Assuming your context var my_data
contains the data needed for the Handsontable, put this in your_template.html
:
<script type="text/javascript">
var myData = "{{ my_data }}";
// now your data is on the JS side.
</script>
๐คAlex Morozov
Source:stackexchange.com