简体   繁体   English

在Django中同时请求

[英]simultaneous requests in django

i have two Django projects. 我有两个Django项目。 i send/receive data via JSON-RPC between this two projects. 我在这两个项目之间通过JSON-RPC发送/接收数据。 my problem is that i started a request in project-1 and call a method in project-2, in the called method of project-2 i call again a method in project-1. 我的问题是我在project-1中启动了一个请求,然后在project-2中调用了一个方法,在被称为project-2的方法中,我再次在project-1中调用了一个方法。 my problem is here. 我的问题在这里。 it seems i have to terminate a request and then start another one. 看来我必须终止一个请求,然后再启动另一个请求。 in fact i want this, when i start calling a method inside projet-2 i want that project-1 request terminated. 实际上,我想要这个,当我开始在projet-2内部调用一个方法时,我希望那个project-1请求终止。 i want it only for calling not for calling and waiting for response.. how i can handle this? 我只希望它不打电话和等待响应..我该如何处理呢?

Check out Celery ; 退房芹菜 ; looks like the problem may be better suited to its approach (task queue) than what you're doing now. 看起来该问题可能比您现在正在做的事情更适合其方法(任务队列)。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM