the calculation should be preformed in views.py and passed to the front end (for example by passing it as a dict )
result = number1 + number2
content = {'result': result}
return render(request, 'app/file.html', context)
and then you can use it in a html file (that's an example you can pass the value elsewhere too) by using {{result}}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…