You need to pass a reference to the function in the context of your render(..) call, like:
#views.py
from django.shortcuts import render
def home(request):
return render(
request,
'radio/index.html',
{'title': 'Radio', 'function_name': function_name}
)
def function_name():
return 'Hello, World!'
Since otherwise, it is not in the context of the template, and hence you can not render it accordingly.