There is such HTML located in base.html
Task: when selecting one item from the list, either apply a filter or select from the database. I understand how to do this with AJAX or SiJAX, but in this case you need to specify the route, and since it goes in base.html, from which all other pages are inherited, route cannot be used.
<div class="currenty-converter"> <form method="post" action="single-product.html#" id="currency-set"> <div class="current-currency"> <span class="cur-label">Отображать цены в: </span><strong>{{price}}</strong> </div> <ul class="currency-list currency-toogle"> <li> <a title="Dollar (USD)" href="">Долларах (USD) </a> </li> <li> <a title="Rubles (BYN)" href="">Рублях (BYN)</a> </li> </ul> </form> </div> {{price}} is in context_processor , and I thought to try to solve it somehow through it, but now I understand that this will not work.
There is also update_template_context , but I do not understand how to use it.
url_forin the view and pass the resulting address to the template as a variable - andreymal