postman发起请求如下图

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

 

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

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

  

相关文章: