《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 "psycopg[binary,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 小时前
实现在Unity3D中仿真汽车,而且还能使用ros2控制
python·unity·docker·汽车·ros2·rviz2
简简单单做算法2 小时前
基于mediapipe深度学习和限定半径最近邻分类树算法的人体摔倒检测系统python源码
人工智能·python·深度学习·算法·分类·mediapipe·限定半径最近邻分类树
hvinsion3 小时前
基于PyQt5的自动化任务管理软件:高效、智能的任务调度与执行管理
开发语言·python·自动化·自动化任务管理
飞飞翼5 小时前
python-flask
后端·python·flask
林九生6 小时前
【Python】Browser-Use:让 AI 替你掌控浏览器,开启智能自动化新时代!
人工智能·python·自动化
猿界零零七6 小时前
执行paddle.to_tensor得到全为0
python·paddle
青花瓷7 小时前
智谱大模型(ChatGLM3)PyCharm的调试指南
人工智能·python·大模型·智谱大模型
独好紫罗兰7 小时前
洛谷题单2-P5715 【深基3.例8】三位数排序-python-流程图重构
开发语言·python·算法
mqiqe8 小时前
Spring MVC 页面跳转方案与区别
python·spring·mvc
小白的高手之路8 小时前
torch.nn.Conv2d介绍——Pytorch中的二维卷积层
人工智能·pytorch·python·深度学习·神经网络·机器学习·cnn