I was going to write this website for communicating with others and i want to implement a desktop app too so now I was wondering whether is is possible to integrate a python, maybe twisted tcp ip server within django so that both the 开发者_JAVA百科site and the custom tcp could run alongside each other...?
Thanks in Advance
What for. Make your desktop app speak HTTP and use an alternate API provided by another application.
http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/
http://www.clemesha.org/blog/realtime-web-apps-python-django-orbited-twisted
these two things helped a lot for me.. and i am pretty sure i can fix it now
You could use any of the COMET-y methods that work on top of HTTP for (almost-)realtime communication if you don't want to go through the hassle (and possible fragility) of your own TCP/IP server.
imdjango (Instantly-made Mobile-server on Django) project started yesterday. You may use it to make both mobile server and web server on one django project.
精彩评论