Skip to content

Instantly share code, notes, and snippets.

@Allwin12

Allwin12/views.py

Created Sep 4, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.