[Answer]-Session in login page in django

1👍

Like suggested by Joseph you need to set the request.user to the context like :

    context= {"form": form, "user": request.user}
    return render(request, template,context)

thus in your template you will beable to access to {{ user.username }}

you can have a look at the complete doc about how to use the auth system of django

hope this could help

Leave a comment