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

postman发起请求如下图

 

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

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

  

posted @ 2019-08-30 15:49  番茄土豆西红柿  阅读(1064)  评论(0编辑  收藏  举报
TOP