Check if the user is authenticated Eg if user.is_authentucated On Fri, Aug 26, 2022, 3:11 PM Lipede Tope <lipedetop...@gmail.com> wrote:
> > > On Fri, Aug 26, 2022, 2:40 PM Jackson Patrick <jackson9...@gmail.com> > wrote: > >> I am trying to get user using request.user and when printing gets None >> and in console it shows >> "Annoymous user". and am using simple jwt >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAG2dbb2N14X_5vcBqTjf%2Bji%2Bxq41x2i8dta2865fw_v5Ze5LpA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAG2dbb2N14X_5vcBqTjf%2Bji%2Bxq41x2i8dta2865fw_v5Ze5LpA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABp6AaCv0gBRrrcffSOP_SpjPdQWMec3S__AX05rLDLoV5TmdA%40mail.gmail.com.