Answers for "how to import status from django rest"

0

import status in django rest framework

from rest_framework import status
from rest_framework.response import Response

def empty_view(self):
    content = {'please move along': 'nothing to see here'}
    return Response(content, status=status.HTTP_404_NOT_FOUND)
Posted by: Guest on May-13-2021

Code answers related to "how to import status from django rest"

Python Answers by Framework

Browse Popular Code Answers by Language