上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: https://www.jianshu.com/p/1e404604d5c3 结论:如果没用序列化,Django默认将数据进行多次转换才能提取我们所需数据,出现关联时我们还需进一步对数据进行查询,操作挺麻烦的。 阅读全文
posted @ 2019-07-03 16:58 凯文队长 阅读(483) 评论(0) 推荐(0) 编辑
摘要: https://www.daguanren.cc/post/csrf-introduction.html 阅读全文
posted @ 2019-07-03 09:08 凯文队长 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 结论: 阅读全文
posted @ 2019-07-02 10:17 凯文队长 阅读(418) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/joey0210/p/3408349.html (function($){ //do something; })(jQuery); 阅读全文
posted @ 2019-06-28 17:42 凯文队长 阅读(185) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/6f9d99f7ad54 里面最后一张图应该输出 This is from C 阅读全文
posted @ 2019-06-27 09:26 凯文队长 阅读(875) 评论(0) 推荐(0) 编辑
摘要: HTML转义 Django对字符串进行自动HTML转义,如在模板中输出如下值: 显示效果如下图: 会被自动转义的字符 html转义,就是将包含的html标签输出,而不被解释执行,原因是当显示用户提交字符串时,可能包含一些攻击性的代码,如js脚本 Django会将如下字符自动转义: 当显示不被信任的变 阅读全文
posted @ 2019-06-21 11:01 凯文队长 阅读(791) 评论(0) 推荐(0) 编辑
摘要: 引言 在数据库存在外键的其情况下,使用select_related()和prefetch_related()很大程度上减少对数据库的请求次数以提高性能 1.实例准备 模型: from django.db import models # Create your models here. # 书 cla 阅读全文
posted @ 2019-06-13 15:41 凯文队长 阅读(392) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/feiyinzilgd/article/details/5609157 阅读全文
posted @ 2019-05-28 10:22 凯文队长 阅读(337) 评论(0) 推荐(0) 编辑
摘要: https://jishu.io/kubernetes/ipvs-loadbalancer-for-kubernetes/ 阅读全文
posted @ 2019-05-21 11:45 凯文队长 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 字典排序 foo 1bar 2spam 3grok 4 怎样在数据字典中执行一些计算操作(比如求最小值、最大值、排序等等)? 阅读全文
posted @ 2019-05-13 16:34 凯文队长 阅读(489) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页