[Python] What is the difference between request.GET.get('username') and...

Discussão em 'Python' iniciado por Stack, Setembro 23, 2024.

  1. Stack

    Stack Membro Participativo

    I want to know the difference between this two methods of getting data

    Just tried to figure it out for the object concepts of this data fetching... I saw request.GET.get('username') used in customauth.py at the time of custom authentication and request.META.get('HTTP_X_ USERNAME') saw in DRF documentation where the custom authentication example is given.

    Continue reading...

Compartilhe esta Página