postman发送数据,django 获取接收数据

postman发起请求如下图

 在django中使用如下方式获取token

print(request.META)
token = request.META.get('HTTP_X_TOKEN')

  

原文地址:https://www.cnblogs.com/robinunix/p/11435352.html