Created
September 4, 2020 14:28
-
-
Save Allwin12/f01de4dd019fde56131ef6219adc87aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SampleView(APIView): | |
def get(self, request): | |
agent = request.META['HTTP_USER_AGENT'] | |
print(agent) | |
return Response({'agent': agent}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment