I'm using Django and sending a variable from views.py to my template. How can I get that variable in my JS file?
return render(request, 'dashboard/dashboard.html', {"value":123})
Now I want to get the value
variable in my JS file. How can I do it? Inside the template,ie HTML file its easy, just do {{value}} and you get it printed, But I wanted to play with this variable a bit and get it into my JS file. Ho do I do it?