-2

Something like:

Welcome {user that is logged in}!

It should appear when the user logs in. Thank you!

AlSub
  • 1,384
  • 1
  • 14
  • 33
  • 2
    Does this answer your question? [Get user information in django templates](https://stackoverflow.com/questions/13713077/get-user-information-in-django-templates) – PacketLoss Jan 18 '21 at 00:56
  • Please help to add some details to your question, thanks! – Vu Phan Jan 18 '21 at 02:09

1 Answers1

0

You gotta create your own login view and then you can use messages to display the welcome message like:

from django.contrib import messages    
messages.success(request, gettext("Login successfully !"))
# gettext is for the translation,  you don't need it
brian yeap
  • 62
  • 1
  • 6