摘要: 1. redis: http://redisdoc.com/index.html 2. redis-py: https://redis-py.readthedocs.io/en/latest/#indices-and-tables 阅读全文
posted @ 2020-04-29 21:14 10132714 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1. 使用全文搜索框架django-haystack 2. 使用搜索引擎whoosh 3. 安装 pip install django-haystack pip install whoosh 4. 配置 settings.py中 INSTALLED_APPS = [ ... 'haystack', 阅读全文
posted @ 2020-04-29 16:49 10132714 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 方法一:使用Django自带的分页器 1. 后端 from django.core.paginator import Paginator paginator = Paginator(skus, 1) # 创建一个对象,参数依次为所要展示对象的列表,每页展示的数量 pages_num = pagina 阅读全文
posted @ 2020-04-29 11:08 10132714 阅读(334) 评论(0) 推荐(0) 编辑