Depending on your application you may want to look into Django forms. Otherwise JS (ajax) is the way to go. More details could always help.
I've recently started learning how to use Django and I was wondering whether or not you could create a button in HTML that can directly call a python function without changing the URL. I was told this was possible with JS but I wanted to know if you could do that in Python.
Thanks for your time reading this!
Call python function with Django