Stay Hungry,Stay Foolish!

11 2021 档案

摘要:why need alembic? After defining ORM CLASS, we need to create table by the ORM class. https://docs.sqlalchemy.org/en/14/orm/tutorial.html#declare-a-ma 阅读全文
posted @ 2021-11-30 17:09 lightsong 阅读(98) 评论(0) 推荐(0) 编辑
摘要:SQL COUNT() with GROUP by https://www.w3resource.com/sql/aggregate-functions/count-with-group-by.php The use of COUNT() function in conjunction with G 阅读全文
posted @ 2021-11-28 00:03 lightsong 阅读(502) 评论(0) 推荐(0) 编辑
摘要:sqlalchemy https://www.sqlalchemy.org/ The Python SQL Toolkit and Object Relational Mapper SQLAlchemy is the Python SQL toolkit and Object Relational 阅读全文
posted @ 2021-11-26 15:20 lightsong 阅读(178) 评论(0) 推荐(0) 编辑
摘要:django model https://docs.djangoproject.com/en/3.2/topics/db/models/ django的ORM工具, 具有非常简洁的接口,遵从django快速开发的理念。 但是此工具是跟django深度绑定的, 很难独立使用。 A model is t 阅读全文
posted @ 2021-11-22 00:16 lightsong 阅读(226) 评论(0) 推荐(0) 编辑
摘要:Are locks unnecessary in multi-threaded Python code because of the GIL? https://stackoverflow.com/questions/105095/are-locks-unnecessary-in-multi-thre 阅读全文
posted @ 2021-11-14 18:28 lightsong 阅读(219) 评论(0) 推荐(0) 编辑
摘要:Marking extra actions for routing https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing ModelViewSet集成了 CRUD 所有功 阅读全文
posted @ 2021-11-13 22:51 lightsong 阅读(61) 评论(0) 推荐(0) 编辑
摘要:lerna https://lerna.js.org/ https://github.com/lerna/lerna 对于规模大的项目, 使用单独一个库管理, 但是内部分为多个package的情况; 使用此工具管理。 Splitting up large codebases into separat 阅读全文
posted @ 2021-11-12 14:18 lightsong 阅读(72) 评论(0) 推荐(0) 编辑
摘要:django migration https://docs.djangoproject.com/en/3.2/topics/migrations/ Migrations are Django’s way of propagating changes you make to your models ( 阅读全文
posted @ 2021-11-09 12:32 lightsong 阅读(90) 评论(0) 推荐(0) 编辑
摘要:react-sketch https://github.com/tbolis/react-sketch Sketch Tool for React-based applications, backed up by FabricJS tbolis.github.io/showcase/react-sk 阅读全文
posted @ 2021-11-09 10:46 lightsong 阅读(170) 评论(0) 推荐(0) 编辑
摘要:Shell IO https://tecadmin.net/prompt-user-input-in-linux-shell-script/# Take Input on Termianl Let’s begin with input directly on terminal. Open a ter 阅读全文
posted @ 2021-11-04 09:51 lightsong 阅读(574) 评论(0) 推荐(0) 编辑
摘要:mapDispatchToProps of react-redux https://react-redux.js.org/using-react-redux/connect-mapdispatch Two Forms of mapDispatchToProps​ The mapDispatchToP 阅读全文
posted @ 2021-11-01 16:04 lightsong 阅读(35) 评论(0) 推荐(0) 编辑
摘要:echo模型 https://channels.readthedocs.io/en/stable/tutorial/part_2.html 浏览器请求, channels给响应。 receive回调接受消息, send接口发送响应消息 # chat/consumers.py import json 阅读全文
posted @ 2021-11-01 00:04 lightsong 阅读(55) 评论(0) 推荐(0) 编辑

千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示