Answer the question
In order to leave comments, you need to log in
How to send bans from DB to static JS files?
return render(request, 'main/wb1.html', data)
So I'm sending data to templates/main/wb1.html, but how to send to JS, which is in static/js/wb1.js folders?
The static file is attached to the HTML file.
Answer the question
In order to leave comments, you need to log in
No way. If you need this, then you are doing something wrong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question