def change(request):
    if ((request.method == 'POST') and request.FILES['origin']):
        myfile = request.FILES['origin']
        fs = FileSystemStorage('./bssets/inputs/')
        filename = fs.save(myfile.name, myfile)
        api_host = 'http://35.221.233.111:8000/'
        headers = {'Content-Type': 'application/json'}
        photo = ('./bssets/inputs/' + filename)
        files = {'file': (filename, open(photo, 'rb'), 'image/jpeg')}
        response = requests.post(api_host, files=files)
        return JsonResponse(response, safe=False)
def change(request):
    if ((request.method == 'POST') and request.FILES['origin']):
        myfile = request.FILES['origin']
        fs = FileSystemStorage('./bssets/inputs/')
        filename = fs.save(myfile.name, myfile)
        api_host = 'http://35.221.233.111:8000/'
        headers = {'Content-Type': 'application/json'}
        photo = ('./bssets/inputs/' + filename)
        files = {'file': (filename, open(photo, 'rb'), 'image/jpeg')}
        response = requests.post(api_host, files=files)
        return JsonResponse(response, safe=False)