Answer the question
In order to leave comments, you need to log in
How to escape curly braces { in Django templates?
It's embarrassing to admit, but I haven't found a solution yet.
In the template I use JS insert q={{{q}}}
This is from ajax-bootstrap-autocomplete
Naturally, the template engine treats {{{q}}} as a variable {q}
How, actually, to get out of the situation without outputting the code to a separate js file?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question