windows终端命令行下使用网络代理
- 右键打开 ShadowsocksR 的 选项设置
- 设置你的HTTP和HTTPS的代理端口
在使用最新版本的 DRF 框架时,注册路由阶段报了一个错
“django.core.exceptions.ImproperlyConfigured: The included URLconf ‘bingo.urls’ does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.”
2019年总体来说还是有所收获的,除了技术上成长了许多,还开发了自己的博客;另外还参与了 Pycon China2019 成都 的志愿者活动,有机会和各位大佬近距离接触
,阿里老哥、日本小姐姐以及 Flask 项目大神维护者的讲解让小生受益匪浅。
POST lagou/testjob/_bulk
{"index":{"_id":1}}
{"salary":10, "title": "Python"}
{"index":{"_id":2}}
{"salary":20, "title": "Scrapy"}
{"index":{"_id":3}}
{"salary":30, "title": "Django"}
{"index":{"_id":4}}
{"salary":40, "title": "Elasticsearch"}
# 添加映射
PUT lagou
{
"mappings": {
"job":{
"properties": {
"title":{
"store": true,
"type": "text",
"analyzer": "ik_max_word"
},
"company_name":{
"store": true,
"type": "keyword"
},
"desc":{
"type": "text"
},
"comments":{
"type": "integer"
},
"add_time":{
"type": "date",
"format": "yyyy-MM-dd"
}
}
}
}
}
POST lagou/job/
{
"title":"python django 开发工程师",
"company_name":"美团科技有限公司",
"desc":"对django的概念熟悉,熟悉python基础知识",
"comments":20,
"add_time":"2019-5-30"
}
POST lagou/job/
{
"title":"python scrapy redis分布式爬虫基本",
"company_name":"百度科技有限公司",
"desc":"scrapy的概念熟悉,熟悉redis基础知识",
"comments":5,
"add_time":"2019-5-1"
}
POST lagou/job/
{
"title":"elasticsearch打造搜索引擎",
"company_name":"阿里巴巴科技有限公司",
"desc":"熟悉数据结构算法,熟悉python基础开发",
"comments":60,
"add_time":"2019-4-15"
}
POST lagou/job/
{
"title":"python打造推荐引擎系统",
"company_name":"阿里巴巴科技有限公司",
"desc":"熟悉推荐引擎的原理以及算法,掌握C语言",
"comments":60,
"add_time":"2019-1-22"
}
1 |
|
bulk操作不能分行,json必需一行写完
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, PUT, DELETE
http.cors.allow-headers: "X-Requested_With, Content-Type, Content_Length, X-User"
RUN apt-get install -y vim
CMD echo "hello docker"
ENTRYPOINT echo "hello docker"