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.
New contributor
inx_KG24 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.