I am trying to trigger my note.send function (from a method) whenever I call a javascript function.
Here is my Javascript code.
function send_mail(){
{{ note.send }}
}
I then call the function send_mail()
whenever an specific action happens on the website, however the django template function is called each time I reload the website even if I don't call the javascript function at all. Please help