Answer the question
In order to leave comments, you need to log in
How to implement the use of scripts depending on the route?
There are routes orders, order.
The idea is that all changes are sent to a common channel and websockets, and all listeners receive changes.
Created orders.js and order.js, how to attach them to a django block.
{block content}
// Сюда прикрепить js файл, чтоб при рендеренге его не выбрасывало.
{endblock}
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