Answer the question
In order to leave comments, you need to log in
How to parse JSON from an incoming request?
1C sends a POST request. With JSON data in the request body.
How do I count them in Django?
Tried like this
@csrf_exempt
def data_fill(request):
try:
data = json.loads(request.body.decode("utf-8-sig")) # Загрузка JSON
except ValueError:
return HttpResponse("invalid json")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question