Django / Twisted(或hendrix)有助于开始 [英] Django / Twisted (or hendrix) help to start

查看:157
本文介绍了Django / Twisted(或hendrix)有助于开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我参与了一个新的项目,简要解释一下。
我们有一个应用服务器,这个服务器可以使用udp与其他系统进行接口(这是一个设计策略,我可以改变它)。
现在,我们需要一个Web应用程序来收集应用程序服务器发送的信息,以显示一些报告,并在需要时发回一些配置。
我们对Django与Twisted(或Hendrix)非常感兴趣,我们在python世界中是非常新鲜的,我在互联网上冲浪了好几天,到目前为止,我还不清楚一些概念,但是我一开始就想念一个概念证明,所以我在这里。



我需要一个关于如何开始的例子或指南,我们的想法对于这个概念证明是简单的。
应用服务器通过udp发送一些数据。
一个twisted / django应用程序接收该信息并将其保存在数据库表中。
django网页读取数据库表并显示报告。我不知道网页是否需要扭曲运行。



请,我读了很多帖子几天,我迷失了如何开始。



提前谢谢你。
最好的问候。

解决方案

逐个学习堆栈的每个部分。首先按照 Django教程,然后一旦你对Django的运行感到满意该应用使用 Hendrix 而不是Django的 manage.py ,最后通过 Twisted 从Hendrix添加您的UDP任务。幸运的是,你提到的所有项目都有良好的社区和文档。你不必一切工作,只需要一些工作。



编写一些代码,然后当你有一些运行的代码,你被困在某个地方,跳返回到Stackoverflow并提出您的具体问题。



更新



正因为如此,有一个视频,其中显示了如何集成Django + Hendrix。给它一个镜头,告诉我们它是如何进行的。


I'm involve in a new proyect, let explain it briefly. We have an application server, this server can be interfaces with other systems using udp (this is a design policy, I can change it). Now we need a web app to collect the information sended by the application servers to show some reports and send back some configuration when we need. We are very interested in Django with Twisted (or Hendrix), we are very new in python world, I surf in Internet for days and so far I undersand some concepts but I mess about how to start with a proof of concept, so I'm here.

I need an example or guide about how to start, our idea is simple for this proof of concept. An Application server send some data over udp. A twisted/django app receive that info and save it in a database table. A django web page read the database table and show a report. I don't know if the web page need to run on twisted or not.

Please, I read a lot of post for days and I'm lost about how to start.

Thank you a lot in advance. Best Regards.

解决方案

Learn each part of your stack one-by-one. Start by following a Django tutorial, then once you're comfortable with Django run the app using Hendrix instead of Django's manage.py, finally add your UDP tasks via Twisted from Hendrix. Lucky for you all the projects you've mentioned have good communities and documentation. You don't have to get everything working perfectly, just get some working pieces.

Write some code, then when you have some running code and you get stuck somewhere, hop back onto Stackoverflow and ask your specific questions.

Update

As it so happens, there's a video which shows how to integrate Django + Hendrix. Give it a shot and tell us how it goes.

这篇关于Django / Twisted(或hendrix)有助于开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆