Enable support for django tags inside js [duplicate]
i currently have to use django template tags inside js script inside a django html template.
Example:
<script>
{% for od in object %}
[convertDate("{{ od.date_recorded|date:'Y-m-d' }}"), {{ od.value_recorded }}],
{% endfor %}
</script>
visual studio code shows error, is there a way to enable this support?
On the image to not have the red underline error