[Answered ]-Django {{data|escapejs}} from a js static file

1👍

Okeeyy … finally, it was easy.

<script>
var myvar = {{data|escapejs}}
</script>
<script src = "{% static 'mycode.js' %}">
👤Juin

Leave a comment