《Django 5 By Example》阅读笔记:p105-p164

《Django 5 By Example》学习第5天,p105-p164总结,总计60页。

一、技术总结

1.文章标签功能

Django自带django-taggit。

2.自定义template tags

3.roadmap功能

4.RSS功能

5.full-text搜索功能

这里使用的是Postgresql,使用pip install psycopg安装后,执行"python manage.py migarte"会报ModuleNotFoundError: No module named 'psycopg2'错误。应该按照文档使用pip install "psycopgbinary,pool"进行安装。

二、英语总结(生词:4)

1.agnostic

p147, Although Django is a database-agnostic web framework, it provides a module that supports part of the rich feature set offered by PostgreSQL, which is not offered by other databases that Django supports.

(1)agnostic: a-("not") + *gno-("to know")。adj. neutral.

2.stem

p156, Stemming is the process of reducing words to their word stem, base, or root form.

(1)stem: *sta-("stand, be firm").

adj. central structure of plant(植物的茎干)。这里是一种比喻意义的用法,意为"central part of sth/fundamental part of sth (词干提取)"。

3.boost

p159, We can boost specific vectors so that more weight is attributed to them when ordering results by relevancy.

vt. to increase or improve sth.

4.trigram

p160, Another search approach is trigram similarity.

n. anothe term for trigraph.

三、其它

chapter 03简评:本章介绍了一些常见的功能,但这些功能都是基于Django的admin去实现,不是很通用,本人选择快速过一遍,了解有哪些库及其用法,不做深入学习。

四、参考资料

1. 编程

(1) Antonio Melé,《Django 5 By Example》:https://book.douban.com/subject/37007362/

2. 英语

(1) Etymology Dictionary:https://www.etymonline.com

(2) Cambridge Dictionary:https://dictionary.cambridge.org

欢迎搜索及关注:编程人(a_codists)

相关推荐
刘天远2 分钟前
Agent成本核算实现:事件表、状态分布与Python归集
前端·数据库·人工智能·python
Python图像识别13 分钟前
40-【2027毕设】YOLO11面部口罩检测识别系统 - Python完整源码+PyQt5界面+训练模型+数据集
python·qt·课程设计
赵大仁17 分钟前
开源清单怎么维护才不烂掉?GitHub Actions 每周查死链 + 软 404 检测实录
python·ci/cd·自动化·开源项目·踩坑·github actions·json schema
玩AI的奶茶19 分钟前
24GB 显存能跑多大的模型?参数量、精度与显存占用对照表
人工智能·python·算法·ai·aigc·gpu算力·算力租赁
kimnoic20 分钟前
Python操作Git命令的详细指南
开发语言·python
Python图像识别24 分钟前
39-【2027毕设】YOLO11行人摔倒检测系统 - Python完整源码+PyQt5界面+训练模型+数据集
python·qt·课程设计
计算机毕业编程指导师32 分钟前
【计算机毕设】基于Hadoop的人口统计特征与肥胖风险关联分析的数据分析系统源码 毕业设计 选题推荐 毕设选题 数据分析 机器学习
大数据·hadoop·python·计算机·数据分析·课程设计·肥胖风险
量化吞吐机32 分钟前
涨跌停价与最小变动价位,为什么要分开看?
python
FYKJ_201033 分钟前
django个性化新闻推荐35173-计算机课程设计、毕业设计
java·spring boot·后端·python·架构·django·课程设计
kimnoic34 分钟前
Python数据库sqlite3图文实例详解
开发语言·python