当前位置: 首页 > news >正文

《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)

http://www.lryc.cn/news/485054.html

相关文章:

  • 网络延迟对Python爬虫速度的影响分析
  • 微信小程序内嵌h5页面(uniapp写的),使用uni.openLocation无法打开页面问题
  • 创建一个简单的基于STM32的FreeRTOS应用
  • 【Revit二次开发】创建Ribbon选项卡与带图标的按钮
  • Win11 终端执行 python xxx.py 没反应
  • 使用视频提升应用在 App Store 中的推广效果
  • 对话 OpenCV 之父 Gary Bradski:灾难性遗忘和持续学习是尚未解决的两大挑战 | Open AGI Forum
  • 通过地址获取LONG和LAT并且存入csv
  • Nginx SSL+tomcat,使用request.getScheme() 取到https协议
  • Node.Js+Knex+MySQL增删改查的简单示例(Typescript)
  • 机器学习的概览
  • 方法论-WPS模型(高效沟通和决策分析的框架)
  • OpenTelemetry 赋能DevOps流程的可观测性革命
  • 子集选择——基于R语言实现(最优子集选择法、逐步回归法、Lasso回归法、交叉验证法)
  • Ubuntu24.04挂载磁盘
  • 使用机器学习优化数据库查询性能
  • 英伟达基于Mistral 7B开发新一代Embedding模型——NV-Embed-v2
  • HTML面试题(2)
  • 微服务day07
  • 芯原科技嵌入式面试题及参考答案
  • 二叉树Golang
  • 通过css的哪些方式可以实现隐藏页面上的元素?
  • 微信小程序 === 使用腾讯地图选点
  • Redis高可用-Cluster(集群)
  • Spring Boot编程训练系统:数据管理与存储
  • 报告解读 | 创意经济2024:如何在变革中抢占先机?
  • Flume1.9.0自定义Sink组件将数据发送至Mysql
  • 如何在 Ubuntu 24.04 上安装和配置 Fail2ban ?
  • uniapp如何i18n国际化
  • C++__day1