如何从MySQL获取数据(根据日期选择器)并将其发送到Django中的tcp服务器 [英] How to Get Data from MySQL (According to Date Picker) and send it to tcp server in Django

查看:99
本文介绍了如何从MySQL获取数据(根据日期选择器)并将其发送到Django中的tcp服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果问题很奇怪我会道歉。



我正在开发django的web框架。我需要做的是我想使用日期时间选择器从表中获取数据,并需要使用tcp / ip通过网络将其发送到套接字服务器。我能够在网页上显示数据,但在第二页上我希望用户选择日期范围并将数据发送到tcp服务器按下按钮。请允许任何人在这个问题上帮助我。



谢谢

I do apologize if the question is weird.

I am developing a web framework in django. What I need to do is I want to get data from tables using datetime picker and need to send it to socket server over the network using tcp/ip. I am able to display data on the webpage but on the second page I want user to select the date range and send data to the tcp server bu pressing button. Please can anybody help me out in this issue.

Thanks

推荐答案

用于非阻塞TCP通信外观在 Gevent模块
For non blocking TCP communication look at Gevent module


这篇关于如何从MySQL获取数据(根据日期选择器)并将其发送到Django中的tcp服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆