My question is basically this question: Call Django on HTML button click
To summarize: in Django, how do you call a function after clicking a button?
I followed the answer in the above link, however, whenever I click on the button it takes me to the URL of /actionUrl, which I do not want. I simply want the function I have to be called when the button is clicked.
Any help would be appreciated because I do not have enough rep to comment on that post.