简体   繁体   English

如何从Django连接到PyDev项目?

[英]How do I connect to a PyDev project from Django?

The core logic rests in a Python project, which is ready, and I am creating the UI using Django framework. 核心逻辑在于一个已经准备好的Python项目,而我正在使用Django框架创建UI。 The Python project uses ZMQ for messaging. Python项目使用ZMQ进行消息传递。

Is it wise to connect Django to ZMQ (from the Python project) to send and receive values? 将Django连接到ZMQ(来自Python项目)以发送和接收值是否明智? I am dealing with MultiAgent systems, and the core project is all about controlling few hardware devices in buildings. 我正在处理MultiAgent系统,核心项目全部是关于控制建筑物中的几个硬件设备。

Yes, it's in fact, a recognized pattern for solutions like you're working on. 是的,实际上,这是您正在研究的解决方案的公认模式。

I gathered for you some links that show diferent approaches: 我为您收集了一些显示不同方法的链接:

Task queuing in Django with ZeroMQ 使用ZeroMQ在Django中进行任务排队

Long Running Taks in Web App/Django Web App / Django中的长期运行Taks

This it's about RabbitMQ , but since RabbitMQ is a MOM ( Message Oriented Middleware ) too it might worth take a look this article: Django and asynchronous jobs 这是关于RabbitMQ的 ,但是由于RabbitMQ也是MOM( 面向消息的中间件 ),因此可能值得看一下这篇文章: Django和异步作业

You might find interesting this package/application too: Django-ztask 您可能也会发现此程序包/应用程序有趣: Django-ztask

I hope you find the ansewr you're looking for. 希望您能找到所需的ansewr。

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

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