Answer the question
In order to leave comments, you need to log in
Django 3, the simplest bug. Error in the template, how to fix ???
I have an ajax handler passing id through data
and I want to pass this id to the url.
but i get this error
<div class="review_delete text-danger"></i><a href="{% url 'news:delete_review' `+data['id_comment']+` news.id %}" class="text-danger"><i class="fas fa-trash-alt mr-2"></i>Видалити</a></div>
`<p>` +data['id_comment']+ `</p>`
, then everything is fine:Answer the question
In order to leave comments, you need to log in
Read the documentation more carefully. Understand the basic principles of web development. Realize that the template engine code and js code are programs in two different languages that run on different machines at different times.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question