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

相关推荐
前端精髓24 分钟前
langchain 短期记忆(状态)动态运行时上下文
python·langchain
最强小杰1 小时前
DeepSeek V4 Flash + Codex CLI 接入教程:原生 Responses API 适配,从配置到跑通收藏这篇就够了(2026)
java·前端·python·ai
DeepVisionary2 小时前
为拿并网许可,OpenAI在佐治亚新园区同意高峰期断电三成
python·自动化
VIP_CQCRE2 小时前
内容自动化越跑越乱?先补上状态、去重和失败恢复
python·ai·工作流·幂等设计·内容自动化
我喜欢就喜欢3 小时前
RAG 重排序 Rerank 实战:用 bge-reranker 把 Top-K 命中率拉回来
python·大模型·向量检索·rag·rerank
专注仿真3 小时前
卷积神经网络(CNN)算法详解
人工智能·python·算法·代码·大模型训练
isfox3 小时前
Python3 协程:异步编程的核心机制与实战
python
用户298698530143 小时前
Python 将 Markdown 批量转为 HTML:单文件与目录遍历两种实现
python·html·markdown
miofly3 小时前
GitHub 今日推荐|auto-ontology:给 Agent 装上企业数据的语义索引
python·开源·github