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

相关推荐
nimadan128 分钟前
海螺口型同步2025解析,提升多设备协同效率的三大核心策略
人工智能·python
KIHU快狐8 分钟前
KIHU快狐|vr全景体验一体机高配置硬件带来更流畅操作体验
python
阿轲Jackson11 分钟前
AttributeError: ‘WebDriver‘ object has no attribute ‘find_element_by_id‘
python·selenium
喵手17 分钟前
Python爬虫实战:Apple Music华语榜每日增量追踪与峰值计算!
爬虫·python·爬虫实战·零基础python爬虫教学·apply music·华语榜单·每日增量与峰值计算
烟锁池塘柳024 分钟前
【已解决】解决 ModuleNotFoundError: No module named ‘exceptions‘
python·pip
Lw中28 分钟前
RAG切片语义割裂怎么办?
python·rag文本分割·大模型应用基础
aiguangyuan31 分钟前
多模态AI实战:CLIP模型原理与代码深度剖析
人工智能·python·机器学习·nlp
xin^_^36 分钟前
java基础学习
java·开发语言·python
坐吃山猪38 分钟前
Tree-sitter语法树解析
开发语言·python·tree-sitter
郝学胜-神的一滴41 分钟前
深度解析:深度学习核心特性与行业实践
人工智能·python·rnn·深度学习·神经网络·cnn