Django Web 服务器聊天

发布于 2024-08-30 04:39:29 字数 176 浏览 1 评论 0原文

任何人都可以建议我一个关于如何做的想法吗 我创建了一个朋友之间的聊天界面 列出我为我的应用程序创建的列表。

实际上是想创建一个聊天服务器。我有 我的 django 模型中的朋友列表。如果多于一个 人同时在线然后他们聊天 彼此。为此目的我必须创建一个套接字 或者还有其他方法可以做到这一点。

谢谢

can any body suggest me an idea about how can
i create a chat interface between the friend
list which i have created for my application.

actually a want to create a chat server. i have
a friends list in my django model. if more then one
person is online at the same time then they chat with
one another. for this purpose do i have to create a socket
or is there any other way to do it.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

赠佳期 2024-09-06 04:39:29

有几个可插入的应用程序可以使用 Django 作为聊天服务器,您可以使用它们,或者至少可以将其用作参考或起点。

还有一些关于使用 Django 和 Orbited 创建聊天服务器的帖子。

There are a couple pluggable apps for using Django as a chat server that you could use or at least use as a reference or starting point.

There are also these posts on using Django with Orbited to create a chat server.

-柠檬树下少年和吉他 2024-09-06 04:39:29

基本的消息服务相当简单。大部分将通过 Javascript/AJAX 完成。只需将用户之间的消息存储在数据库中,然后让 AJAX 轮询服务器以获取更新。对话结束后,将其删除。

A basic messaging service is fairly easy. Most of it will be through Javascript/AJAX. Simply store messages from users to users in the database, and have your AJAX poll the server for updates. Once the conversation is ended, delete them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文