漫天漫想
wang_nai_jun
这个作者很懒,什么都没留下…
展开
-
flask, SQLAlchemy, with_entities, KeyedTuple,decimal示例
sums = DataRpt.query.\ with_entities(DataRpt.code,func.\ sum(DataRpt.cnt).label('cnt'))\ .group_by(DataRpt.code).\ order_by(DataRpt.code).all() if(sums==None or len(sums) == 0): return {"success":False,"co...原创 2021-08-26 20:11:08 · 635 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘flask._compat‘
PYTHON / FLASK / MIGRATE ...升级后,db_migrate出现ModuleNotFoundError: No module named 'flask._compat'错误,然后就是抄来抄去铺天盖地的主意让降级使用,能降级还升级干啥?正解是:修改flask_script/__init__.py把from ._compat import text_type改成from flask_script._compat import text_type【感谢:Python...原创 2021-08-26 19:58:26 · 4110 阅读 · 4 评论 -
ubuntu18 重启后 网口灯不亮 网卡无IP
ifconfig -a 查看所有网卡名sudo dhclient 网卡名ifconfig网卡名发现网卡有了IP(v4),网口灯亮,一切恢复正常。【参考(12条消息) ubuntu18.04的ifconfig输出没有ip地址_本可奈何的博客-CSDN博客_ubuntu没有ip地址】------------------谢绝任何形式的转载--------------------------...原创 2021-08-20 21:24:58 · 3354 阅读 · 1 评论 -
UnsatisfiedLinkError tomcat SSL
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I at org.apache.tomcat.jni.SSL.renegotiatePending(Native Method) at org.apache.tomcat.util.net....原创 2021-08-10 12:39:26 · 430 阅读 · 0 评论 -
CURL SSL received a weak ephemeral Diffie-Hellman key
curl https://xxxx:8443/-i -k curl:(35) SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange handshake message修改tomcat/conf/server.xml, 更改配置, Connector增加sslEnabledProtocols和cipherssslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"ciphers=原创 2021-08-10 12:29:42 · 519 阅读 · 0 评论