import status in django rest framework

Solutions on MaxInterview for import status in django rest framework by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "import status in django rest framework"
Ella
30 Mar 2020
1from rest_framework import status
2from rest_framework.response import Response
3
4def empty_view(self):
5    content = {'please move along': 'nothing to see here'}
6    return Response(content, status=status.HTTP_404_NOT_FOUND)