Visual Studio: Django template with DTL. Problem: HTML form tag doesn't accept DTL(Django Template Language) tag with double (")

My problem is when I write the HTML tag with the DTL(Django Template Language) tag for URL, VSC mark it as wrong (the reason is obvious: wrong string detecting).

enter image description here

I'm not entirely sure what approach is the most proper. Should I use an escape character for the inner " or write this?: enter image description here

If an escape character is the most proper way how should be constructed? \" seems not working.

According to the documentation having single quotes' inside the URL tag is the most canonic way.

So, this is a proper answer (also evaluated as good by VSC):

enter image description here

Back to Top