привет всем подскажите что не так делаю headers = { "Content-type": "application/json", "cache-control": "no-cache", "Token": "90dd0c66b7568ac0e8c9fb0fee36a027bd2bfcc4" } from requests import post post(se, headers=headers, data={'data': [{'log': 'ewrqererqerqer'}]}) приходит пустым и не авторизовывается отправляю на class PostData(APIView):
привет всем подскажите что не так делаю headers = { "Content-type": "application/json", "cache-control": "no-cache", "Token": "90dd0c66b7568ac0e8c9fb0fee36a027bd2bfcc4" } from requests import post post(se, headers=headers, data={'data': [{'log': 'ewrqererqerqer'}]}) приходит пустым и не авторизовывается отправляю на class PostData(APIView):
привет всем подскажите что не так делаю headers = { "Content-type": "application/json", "cache-control": "no-cache", "Token": "90dd0c66b7568ac0e8c9fb0fee36a027bd2bfcc4" } from requests import post post(se, headers=headers, data={'data': [{'log': 'ewrqererqerqer'}]}) приходит пустым и не авторизовывается отправляю на class PostData(APIView):
привет всем подскажите что не так делаю headers = { "Content-type": "application/json", "cache-control": "no-cache", "Token": "90dd0c66b7568ac0e8c9fb0fee36a027bd2bfcc4" } from requests import post post(se, headers=headers, data={'data': [{'log': 'ewrqererqerqer'}]}) приходит пустым и не авторизовывается отправляю на class PostData(APIView):
откуда взял поле Token? может 'Authorization': 'Token <token>' ?