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

相关推荐
张子夜 iiii1 小时前
(0️⃣基础)程序控制语句(初学者)(第3天)
人工智能·python
码农派大星。5 小时前
Selenium在Pyhton应用
python·selenium·测试工具
day>day>up5 小时前
django uwsgi启动报错failed to get the Python codec of the filesystem encoding
后端·python·django
Shun_Tianyou6 小时前
Python Day25 进程与网络编程
开发语言·网络·数据结构·python·算法
都叫我大帅哥7 小时前
LangGraph条件判断:让AI工作流"聪明"起来
python·langchain
编程研究坊7 小时前
Neo4j APOC插件安装教程
数据库·人工智能·python·neo4j
咩?7 小时前
SEABORN库函数(第十八节课内容总结)
开发语言·python·matplotlib·seaborn
万粉变现经纪人7 小时前
如何解决pip安装报错ModuleNotFoundError: No module named ‘transformers’问题
人工智能·python·beautifulsoup·pandas·scikit-learn·pip·ipython
浊酒南街8 小时前
Pytorch基础入门1
pytorch·python
仪器科学与传感技术博士8 小时前
Matplotlib库:Python数据可视化的基石,发现它的美
开发语言·人工智能·python·算法·信息可视化·matplotlib·图表可视化