Is 1 or 2 the correct way to call a function within a view function in Django. Or are both equally ok. Please explain.
#1
def function1(request):
[some api calls]
#Once this process is done I want to call my second function
return function2()
def function2():
# some hard work
return HttpResponse(...)
#2
def function1(request):
[some api calls]
#Once this process is done I want to call my second function
function2()
def function2():
# some hard work
return HttpResponse(...)
