O
O
orbit0702019-05-26 21:08:32
Django
orbit070, 2019-05-26 21:08:32

How to remove "errors" in VSCODE?

In the template file I write this:

<img src="{{box.photo}}" style="border: 3px solid {{box.color}};">

where box is the object passed from views.
The editor detects the location "{{box.color}}" as an error.
Can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nrgian, 2019-05-26
@nrgian

Indicate to the editor that files of this type are templates of type Mustache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question