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

相关推荐
Mr数据杨4 分钟前
【Codex】用历史试卷模块沉淀考试资料与复用题卷
django·codex·项目开发
研究点啥好呢4 分钟前
面馆开业!客官,你的面(经)好了!
python·阿里云·docker·面试·reactjs·求职招聘·react
m0_613856297 分钟前
Python中PyTorch模型如何显存优化_使用梯度检查点减少显存占用
jvm·数据库·python
QQ2422199798 小时前
基于python+微信小程序的家教管理系统_mh3j9
开发语言·python·微信小程序
RSTJ_16259 小时前
PYTHON+AI LLM DAY THREETY-SEVEN
开发语言·人工智能·python
郝学胜-神的一滴9 小时前
深度学习优化核心:梯度下降与网络训练全解析
数据结构·人工智能·python·深度学习·算法·机器学习
Mr数据杨9 小时前
【Codex】用Tauri用户配置打通桌面端个性化设置
django·codex·项目开发
Aision_9 小时前
Agent 为什么需要 Checkpoint?
人工智能·python·gpt·langchain·prompt·aigc·agi
清水白石0089 小时前
《Python性能深潜:从对象分配开销到“小对象风暴”的破解之道(含实战与最佳实践)》
开发语言·python
Land032910 小时前
RPA工具选型技术指南:架构差异与实测数据
python·自动化·rpa