Django / Twisted (or hendrix) help to start

江枫思渺然 提交于 2019-12-25 07:48:24

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/38915054/django-twisted-or-hendrix-help-to-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!