上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页
摘要: 例子 class GoodsSerializer(serializers.ModelSerializer): goods_desc = serializers.SerializerMethodField(help_text='内容', label='内容') def get_goods_desc(s 阅读全文
posted @ 2019-05-13 19:52 twfb 阅读(289) 评论(0) 推荐(0)
摘要: 新建 .reg 文件 然后执行 阅读全文
posted @ 2019-05-12 23:29 twfb 阅读(414) 评论(0) 推荐(0)
摘要: 模板 设置 客户端密钥(DSN) 配置 例: 参考: https://www.jianshu.com/p/66e00077fac3 阅读全文
posted @ 2019-04-26 11:57 twfb 阅读(1045) 评论(0) 推荐(0)
摘要: 问题描述: 在model中设置了help_text后,但并没有在drf的doc中显示 解决方法: 重载filter_for_field方法然后将 加到extra中 例: 也可以直接修改django_filters.rest_framework下面的FilterSet, 重写filter_for_fi 阅读全文
posted @ 2019-04-17 18:32 twfb 阅读(1751) 评论(0) 推荐(0)
摘要: 关联对象反向引用描述符, 即通过父亲找儿子 阅读全文
posted @ 2019-04-15 15:29 twfb 阅读(176) 评论(0) 推荐(0)
摘要: 1. 首先Spider发送第一个需要爬取的Requests给Engine,然后跳到4 2. Engine在Scheduler中对Requests进行调度, 并请求下一个需要爬取的Requests. 3. Scheduler接受请求后, 返回下一个Requests给Engine. 4. Engine收 阅读全文
posted @ 2019-03-25 14:34 twfb 阅读(242) 评论(0) 推荐(0)
摘要: 原因: elasticsearch dsl 版本不对 版本要求 Elasticsearch 6.x elasticsearch dsl =6.0.0,=5.0.0,=2.0.0, 阅读全文
posted @ 2019-03-20 14:01 twfb 阅读(614) 评论(0) 推荐(0)
摘要: pyhton2.7 版本需要 python 2.7.9+ 参考链接: https://github.com/pytorch/pytorch/issues/3193 issuecomment 338165421 阅读全文
posted @ 2019-03-17 19:29 twfb 阅读(1327) 评论(0) 推荐(0)
摘要: 注册Pypi 验证注册邮箱 用我的一个包(git-clone)举例 供参考项目: https://github.com/dhgdhg/git-clone 必须的文件及文件夹 setup.py from setuptools import setup, find_packages setup( nam 阅读全文
posted @ 2019-03-17 19:20 twfb 阅读(444) 评论(0) 推荐(0)
摘要: 试了timeout发现老抛异常还捕获不到 于是 hahaha 阅读全文
posted @ 2019-03-15 17:26 twfb 阅读(665) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页