《Django 5 By Example》阅读笔记:p165-p210

《Django 5 By Example》学习第6天,p165-p210总结,总计46页。

一、技术总结

1.bookmarks项目

(1)登录认证

作者这里使用的是Django自带的auth。

(2)上传头像

图片处理,使用Pillow。

(3)扩展user

扩展user模型与自带的user使用外键进行关联,命名为profile。

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

1.de facto

(1)de facto

adv. existing in fact, although not legally。p202, Pillow is the de facto standard library for image processing in Python. de facto不完全等于in fact, 可以理解为虽然不是法律上或者标准上,但在实际中被认为是。例如202页的这句话,虽然Pillow不属于Python标准库,但在实际的使用中被大家认为是图像处理的Python标准库。

(2)de jure

de jure是de facto的反义词。

三、其它

chapter 04简评:本章作者新建了一个bookmarkds项目讲解关于"认证(authentication)"的流程,较详细。

四、参考资料

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)

相关推荐
花酒锄作田12 小时前
Pydantic校验配置文件
python
hboot12 小时前
AI工程师第四课 - 深度学习入门
pytorch·python·神经网络
ZhengEnCi1 天前
P2M-Matplotlib折线图完全指南-从数据可视化到趋势分析的Python绘图利器
python·matlab·数据可视化
ZhengEnCi1 天前
P2L-Matplotlib饼图完全指南-从数据可视化到图表定制的Python绘图利器
python·matlab
曲幽1 天前
你的REST接口还在“过度投喂”数据吗?——FastAPI + GraphQL实战避坑指南
python·fastapi·web·graphql·route·cors·rest·strawberry
用户8358086187911 天前
基于 Self-RAG 与列表级重排序的进阶 RAG 系统设计与实现
python
Warson_L2 天前
Python `Annotated` 与 LangGraph Reducer 学习笔记
python
韩师傅2 天前
海天线算法的前世今生
python·计算机视觉
韩师傅2 天前
当你的甲方设备过烂,要如何快速出效果?
python·计算机视觉
Warson_L2 天前
LangGraph的MessageState and HumanMessage
python