My question is basically the Python version of this question:
code structure:
def save(request):
if request.method == 'POST':
...
email_obj.save() # write data into database
# the below sendmail step takes too long to finish
# how to execute it without waiting for it to finish
# then immediately run the last step: return render(request, 'success.html')
sendmail(email_obj) #
return render(request, 'success.html')