• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
海-哥
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 下一页

2020年7月23日

自定义分页
摘要: from urllib.parse import urlencodeclass CustomPage(object): """ 自定义分页 all_count = queryset.count() url = request.path_info lists = queryset[fin_ye.sta 阅读全文
posted @ 2020-07-23 18:36 海-哥 阅读(161) 评论(0) 推荐(0)
 
 

2020年7月15日

docker 的安装
摘要: 官网安装 docker查看环境[root@192 ~]# uname -r3.10.0-514.el7.x86_64$ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-lat 阅读全文
posted @ 2020-07-15 13:11 海-哥 阅读(153) 评论(0) 推荐(0)
 
 

2020年6月16日

flask
摘要: https://www.cnblogs.com/wupeiqi/articles/7552008.html 阅读全文
posted @ 2020-06-16 18:08 海-哥 阅读(97) 评论(0) 推荐(0)
 
 

2020年6月11日

jieba
摘要: pip install jiebaimport jiebastring = "很不错的草莓"for i in jieba.cut(string, cut_all=True): print(i)for i in jieba.cut_for_search("他毕业于上海交通大学机电系,后来在一机部上海电 阅读全文
posted @ 2020-06-11 10:14 海-哥 阅读(230) 评论(0) 推荐(0)
 
whoosh
摘要: 在django中的使用 定义索引类 from haystack import indexes # 导入你的模型类 from models import xxx # 指定对于某个类的某些数据建立索引(模式 模型类名 + index) class YourModelIndex(indexes.Searc 阅读全文
posted @ 2020-06-11 09:34 海-哥 阅读(280) 评论(0) 推荐(0)
 
全文检索框架haystack
摘要: pip install django-haystack pip install whoosh pip install jieba1:将Haystack添加到settings.py中的INSTALLED_APPS中:INSTALLED_APPS = [..............'HAYSTACK', 阅读全文
posted @ 2020-06-11 09:04 海-哥 阅读(241) 评论(0) 推荐(0)
 
 

2020年6月10日

elasticsearchr Python之操作篇
摘要: elasticsearchr Python之操作篇 阅读全文
posted @ 2020-06-10 19:32 海-哥 阅读(76) 评论(0) 推荐(0)
 
elasticSearch 原生python请求
摘要: 安装 url: https://www.elastic.co/cn/downloads/ 下载解压, 开箱及用 import requestsimport jsonbase_url = "http://127.0.0.1:9200" session = requests.session()sessi 阅读全文
posted @ 2020-06-10 17:32 海-哥 阅读(544) 评论(0) 推荐(0)
 
 

2020年6月4日

Ubuntu上配置FastDFS+Nginx+fastdfs-nginx-module-master环境搭建
摘要: 原文 https://blog.csdn.net/michael_xwb/article/details/90267890 阅读全文
posted @ 2020-06-04 21:06 海-哥 阅读(304) 评论(0) 推荐(0)
 
 

2020年5月21日

alipay
摘要: # -*- coding: utf-8 -*-# !/usr/bin/env python# Software: PyCharm# __author__ == "YU HAIPENG"# fileName: alipaySign.py# Month: 三月# time: 2020/3/21 18:5 阅读全文
posted @ 2020-05-21 22:48 海-哥 阅读(260) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3