I want to do something very simple but I couldn't find any information anywhere: I want to pass some variables to the admin interface of django. In simple words, I want to calculate some values:
def sum(a,b):
    sum = a + b
    return sum
and then use it inside index or base_html.html as {{ sum }}
How can I do something like that?
 
     
    