Django的requests.post()请求
首先在admin.py导入import requests这里要提前在服务器pip install requests代码===》host = getattr(settings,"REQUEST_HOST")post_data = {'id':obj.id}requests.post(host+"/to/roll-home/execute-task", data=post_data)
原创
2021-06-29 15:56:26 ·
419 阅读 ·
0 评论