I'm having some difficulty returning multiple values in my view. I can create a model, store the values in the model, and then return it, but this approach is not what I'm looking for because these values will be used once only.
Is it possible to return multiple values without storing them in a model?
For example, view.py:
loanAmount = request.GET.get('desired_loan')
repaymentTime = request.GET.get('repayment_time')
return render(request, 'blog/draw.html', "I want to return loanAmount and repaymentTime")
and then in Template, simply:
{{ loanAmount }}
How do I go about this? Any direction or help will be appreciated.
Thanks,