Enable support for django tags inside js [duplicate]

enter image description herei currently have to use django template tags inside js script inside a django html template.



{% for od in object %}
[convertDate("{{ od.date_recorded|date:'Y-m-d' }}"), {{ od.value_recorded }}],
{% endfor %}


visual studio code shows error, is there a way to enable this support?

On the image to not have the red underline error

Back to Top