[Answer]-Using one view but multiple tags in my template

1👍

Create a list and add to it the 9 random numbers:

def randums(request):
    lower = 10**(9-1)
    upper = 10**9 - 1
    result = []
    for x in range(0, 9):
        result.append(random.randint(lower, upper))
    context = {'result': result}
    return render(request, 'index.html', context)

and in you view loop over the result

Leave a comment