会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
李瑞鑫
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2018年9月20日
django 定制admin
摘要: https://www.cnblogs.com/liwenzhou/p/9519321.html
阅读全文
posted @ 2018-09-20 16:03 李瑞鑫
阅读(371)
评论(0)
推荐(0)
2018年6月1日
django rest framework 详解
摘要: Django REST framework 是用于构建Web API 的强大而灵活的工具包。 我们可能想使用REST框架的一些原因: Web浏览API对于开发人员来说是一个巨大的可用性。 认证策略包括OAuth1a和OAuth2的包。 支持ORM和非ORM数据源的序列化。 如果你不需要更强大的功能,
阅读全文
posted @ 2018-06-01 10:50 李瑞鑫
阅读(25521)
评论(0)
推荐(0)
2017年12月11日
git 获取领先落后的命令
摘要: git --git-dir=/data/usr/local/gerrit-site/git/aixuexi-admin.git rev-list --left-right --count master...1.0.2 #客户端判断 git pull git log master ^origin/co
阅读全文
posted @ 2017-12-11 19:17 李瑞鑫
阅读(634)
评论(0)
推荐(0)
2017年11月23日
django orm 时间字段讲解
摘要: 创建django的model时,有DateTimeField、DateField和TimeField三种类型可以用来创建日期字段,其值分别对应着datetime()、date()、time()三中对象。这三个field有着相同的参数auto_now和auto_now_add,表面上看起来很easy,
阅读全文
posted @ 2017-11-23 10:19 李瑞鑫
阅读(9581)
评论(0)
推荐(0)
2017年10月31日
python 生成随机图片验证码
摘要: 1.安装pillow模块 (1)创建图片 运行程序,程序会在py文件的同级下生成一个名为"pic.png"的小图片,图片长为400px,宽为400px,颜色为白色 (2)创建笔画 验证码实例
阅读全文
posted @ 2017-10-31 14:23 李瑞鑫
阅读(1599)
评论(0)
推荐(0)
2017年9月19日
django定时任务小插件
摘要: django定时任务之crontab
阅读全文
posted @ 2017-09-19 10:23 李瑞鑫
阅读(688)
评论(0)
推荐(0)
2017年6月25日
文档链接
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2017-06-25 10:50 李瑞鑫
阅读(13)
评论(0)
推荐(0)
2017年6月5日
线程池模块thernd
摘要: from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor import time def task(i): print(i) time.sleep(1) pool = ThreadPoolExecutor(10) for index in range(66): pool.submit(t...
阅读全文
posted @ 2017-06-05 14:01 李瑞鑫
阅读(167)
评论(0)
推荐(0)
2017年4月22日
python logging 模块记录日志
摘要: #日志记录到多文件示例 #日志记录到单个文件示例 #只创建一个实例的设计模式 cls为类名
阅读全文
posted @ 2017-04-22 15:13 李瑞鑫
阅读(390)
评论(0)
推荐(0)
2017年3月19日
django Q条件
摘要: #q条件from django.db.models import Qq = Q(name__startswith="p") | Q(name__startswith="l") #or条件v =models.Book.objects.filter(q).values("name")print(v)#匹
阅读全文
posted @ 2017-03-19 13:31 李瑞鑫
阅读(1139)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告