Guest User

Untitled

a guest
Apr 1st, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. @csrf_exempt
  2. @api_view(["POST"])
  3. @permission_classes((AllowAny,))
  4. @authentication_classes([SessionAuthentication, BasicAuthentication])
  5. def cut(request):
  6.     altered_request_data = request.data.copy()
  7.     print(altered_request_data)
  8.     in_memory_upload_files_list = [value for value in request.FILES.dict().values()]
  9.     print(in_memory_upload_files_list)
  10.  
  11.     # img = kbs(cv2.imread(request.data.get("image").file), full_name='kpi2.jpg')
  12.     data = {}
  13.     return Response(data, HTTP_200_OK)
Advertisement
Add Comment
Please, Sign In to add comment