import status in django rest framework

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

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)