[Answered ]-VSCode, Django and javascript: Why does VSCode indicate an error when I use {{ }}?

1πŸ‘

βœ…

VS Code depends on plugins to understand most languages. A django template plugin (e.g. Django, Django Templates, et. al) will fix the issue.

Aside: Do note that mixing Django template language with javascript will potentially make it very difficult to extract the javascript into its own file later (for bundling/transpiling/etc.). It’s usually better to feed django data to a javascript function that does the looping.

πŸ‘€thebjorn

Leave a comment