Home > other >  How to make a tornado, according to the request. The contents of the body to determine forwarded to
How to make a tornado, according to the request. The contents of the body to determine forwarded to

Time:10-11

As title, I in the client in the following way to send tornado request:
 
The import requests

Data={
https://bbs.csdn.net/topics/'a', 'aaa',
"B", "BBB, '
}

Ret=requests. Post (' http://127.0.0.1:8000 ', json=data)


I hope that in the tornado according to the different content of 'a' field in the data are forwarded to the different view function, but also hope to pass the data to forward the view of function, forward this movement is easier to implement, but how to transfer the data in the past? Familiar with tornado claims or django colleagues to help give directions, thank you!
  • Related