Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 python 套接字正在运行,设备可以向该套接字发送数据。我想保存数据并将其显示给使用 django 的用户。我将如何使用 django 频道将数据转发/推送到 django。有没有办法做到这一点?
您有两种方式 Django 可以从其他设备接收消息,例如您的设备。
一旦您的设备可以与 Django 服务器进行 POST 或 GET 通信,您将获得数据
在你的 Django 中启动一个新线程(因为它现在支持异步),你可以接收套接字数据并更新用户。