I am new to django.
What i am trying to do is to run a django function from my "main.py" file when a html button is pressed.
what I've done is created a button in html:
<input type="button" value="Formatting excel" onclick="excel_formatting">
And then in my "main.py " I have:
def excel_formatting():
print("hello world")
return()
The website loads fine, but when i press the button nothing is printed in the terminal. i must be doing something wrong.