I would like to display an image in function of my views. For Example if I have value in my database "100" for a user, my website show me a specific Image if the value is not "100" it shows me another Image. I wrote a simple code with "print" but I do not know how replace "print" with an image and then display it on my page.
this my views.py
def Test(request):
if request.user.is_authenticated:
    try:
        name = coach.objects.get(user=request.user)
    except coach.DoesNotExist:
        name = coach(user=request.user)
    objs = Lesson.objects.all().filter(mycoach = name)
    args = {'objs': objs}
    if name.monday=="100":
        print("Monday")
    else:
        print("Not Monday")
    messages.add_message(request, messages.INFO, 'Welcome to your profile')
    return render(request, 'test.html', args)
else:
    return render(request, 'home.html')
 
    