python twisted tutorial/question

时光毁灭记忆、已成空白 提交于 2020-01-05 14:12:10

问题


Got a simple question regarding twisted.

I can create a trivial basic test with a web server like apache, where http://foo.com/index.php instantiates the index.php for the "foo" site/app...

I'm trying to figure out how the heck I can create a twisted server, where I run different backend functions based on the input!

I know, embarrasingly simple.. but none of what I've seen regarding twisted/server/client/etc.. discusses this.

Comments/pointers/samples are greatly welcome.

thanks


回答1:


Have you read this? http://krondo.com/blog/?page_id=1327




回答2:


You may find http://twistedmatrix.com/documents/current/web/howto/web-in-60/index.html helpful.



来源:https://stackoverflow.com/questions/3374481/python-twisted-tutorial-question

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