[英]how do I know if a remote user is connected in django?
how do I know if a remote user is connected in django?, like gmail chat, or facebook chat... I need that in the templates system. 我如何知道django中是否连接了远程用户?例如gmail chat或facebook chat ...我需要在模板系统中使用它。 Sorry for my english
对不起我的英语不好
If you need just a general idea of who is currently visiting your website, which includes anonymous visitors, use django-tracking app. 如果您只需要大致了解谁当前正在访问您的网站(包括匿名访问者),请使用django-tracking应用程序。
If you need a chat application, or need to know exactly who is logged in at any time, this is much more complicated and will require you to know a lot about chat protocols like XMPP and how to use persistent connections with ajax or comet methods. 如果您需要聊天应用程序,或者需要随时准确地知道谁登录,则要复杂得多,并且需要您了解很多有关XMPP之类的聊天协议,以及如何使用ajax或Comet方法使用持久连接。 Some starting projects to look at: xmpp-psn and django-xmpp
一些入门项目需要研究: xmpp-psn和django-xmpp
Also see this web page for a list of non-Django XMPP browser clients: http://xmpp.org/software/clients.shtml 另请参阅此网页以获取非Django XMPP浏览器客户端的列表: http : //xmpp.org/software/clients.shtml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.