Nothing to be sorry about.
I'll take a look at your code later, since I'm on mobile now.

Can you show me the code where you make the request?

You're using curl or some javascript client?


Em sáb, 30 de nov de 2019 17:10, Yery cs <[email protected]> escreveu:

> Hello, thanks for you reply.
> Sorry for my poor post. I understand concepts of Django authentication.
> I am using DRF jwt.
> I have added my custom middleware after Authentication middleware in
> settings file.
> And I am printing request.user in console like this `print(request.user)`
> in my custom middleware.
> But I get still AnonymousUser.
> Can you tell me why it is, and how can I fix it?
> Thank you.
>
>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/CALCmTPEd-rLHmS%2BazDR2Zj-NR7ZtkbVhEEQcvdER%3Dbq0%3DU-5vA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-rest-framework/CALCmTPEd-rLHmS%2BazDR2Zj-NR7ZtkbVhEEQcvdER%3Dbq0%3DU-5vA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CA%2Ba7aJ3efg3%2BBzgcxeTSCZwP6pw%3Dk3NoecUsJ0QNN_7nREErSQ%40mail.gmail.com.

Reply via email to