简体   繁体   English

我如何知道django中是否连接了远程用户?

[英]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-psndjango-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

Comet is probably what you want. 彗星可能就是您想要的。 Look at Orbited , Hurricane or Tornado . 看看轨道飓风龙卷风

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何获得 Python 以了解用户连接的 Wifi? - How do I get Python to know what Wifi the user is connected to? 在 Python 中,如果用户通过 SSH 连接,我如何获取用户的远程 IP(他们的最后一跳)? - In Python, how do I get user's remote IP (their last hop) if they're connected over SSH? 我如何知道连接到服务器的客户端数量,并将连接的客户端数量返回给用户? - How can I know the number of clients connected to the server and return the number of the connected clients to the user? 如何打印已连接套接字的本地和远程地址和端口? - How do I print the local and remote address and port of a connected socket? 我如何知道远程进程正在运行或已完成? - How do I know the remote process is running, or complete? 我怎么知道用户是否通过python脚本中的ssh连接到本地计算机? - How can I know if the user is connected to the local machine via ssh in my python script? Django REST-如何与连接的用户获取对象 - Django REST - How to get an object with connected user django 我怎么知道哪个复选框被选中 - django how do I know which checkbox was checked Django模板,我怎么知道哪个模板被调用 - Django templates, how do I know which template gets called Django 和 Pyrebase:我如何知道我的 email 是否在 firebase 中得到验证 - Django & Pyrebase: How do I know if my email is verified or not in firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM