《Django 5 By Example》阅读笔记:p211-p236

《Django 5 By Example》学习第7天,p211-p236总结,总计26页。

一、技术总结

1.messages(消息推送)

django.contrib.messages。

2.OAuth 2

Django里使用的是social-app-django这个package进行认证操作。

3.开发环境使用HTTPS

使用django-extensions,werkzeug,pyOpenSSL实现。

4.第三方帐号登录

书里以使用goole帐号进行登录进行示例。

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

1.seamlessly

p218, Remember that Django will try to authenticate the user against each of the backends, so now you should be able to log in seamlessly using your username or email account.

(1)seam: *syu-("to bind, sew").

c. a line where two things join, especially a line of sewing two pieces of cloth.

(2)seamless

adj. without any seams.

(3)seamlessly

adv. without any interruption(连续地).

2.discern

p218, If two or more user accounts share the same email address, we won't be able to discern which user is authenticating.

(1)discern: dis-("off, away") + cernere("distinguish, separate, sift")

vt. to recorgnize sth that is not clear.

三、其它

chapter 05简评:其实本章介绍的消息推送,使用第三方帐号登录都挺有意义的,就是总有一种感觉,作者仅仅是演示怎么用,还未讲解原理,就用了那么多篇幅,读起来是真累。去亚马逊看了下,35个评论,4.7分,也不知道这评分准不准。

四、参考资料

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)

相关推荐
灵智工坊LingzhiAI9 分钟前
人体坐姿检测系统项目教程(YOLO11+PyTorch+可视化)
人工智能·pytorch·python
烛阴8 小时前
简单入门Python装饰器
前端·python
好开心啊没烦恼8 小时前
Python 数据分析:numpy,说人话,说说数组维度。听故事学知识点怎么这么容易?
开发语言·人工智能·python·数据挖掘·数据分析·numpy
面朝大海,春不暖,花不开8 小时前
使用 Python 实现 ETL 流程:从文本文件提取到数据处理的全面指南
python·etl·原型模式
2301_805054569 小时前
Python训练营打卡Day59(2025.7.3)
开发语言·python
万千思绪10 小时前
【PyCharm 2025.1.2配置debug】
ide·python·pycharm
微风粼粼11 小时前
程序员在线接单
java·jvm·后端·python·eclipse·tomcat·dubbo
云天徽上12 小时前
【PaddleOCR】OCR表格识别数据集介绍,包含PubTabNet、好未来表格识别、WTW中文场景表格等数据,持续更新中......
python·ocr·文字识别·表格识别·paddleocr·pp-ocrv5
你怎么知道我是队长12 小时前
python-input内置函数
开发语言·python
叹一曲当时只道是寻常12 小时前
Python实现优雅的目录结构打印工具
python