1
I’ve been developing in Django for a little while, I have an image like on my site, when I click on it I would like to only change a field in the bank without reloading or resending the page and stay in the same place.
I have how to call a Python function directly in html or via javascript which is the best way to do this?
I searched in several places and did not find an answer, the only way I found was passing via url, but then would have to render the page again?
I’m using Django 2.1 and python 3.7 Thanks in advance for the help.
Welcome to Stackoverflow. I believe the answer is Ajax. Read on: https://answall.com/questions/116153/ajax-n%C3%A3o-%C3%A9-a-program-language%C3%A7%C3%A3o-ent%C3%A3o-o-que-%C3%A9
– Wallace Maxters
Thanks Wallace, I’m really new in this world javascript and html, I’ve heard of Ajax, but I never stopped to look, I’ll study, thanks for the link. Hugs
– Emanoele
I recently used the Axios and particularly it worked well with Django/Flask in a first test.
– Renato Cruz