《Django 5 By Example》阅读笔记:p388-p454

《Django 5 By Example》学习第 15 天,p388-p454 总结,总计 66 页。

一、技术总结

1.celery

我觉得书中这种用法太简单了。

2.flower

用于监控 celery。

python 复制代码
# 安装 
pip install flower 
# 启动 
celery -A myshop flower --basic-auth=root:root 
# 访问 
http://127.0.0.1:5555

3.支付功能

书中使用的是国外的 stripe ,在国内基本不大可能用到了,这里不做评价。

4.导出为 CSV 文件

所有一直都使用 CSV 文件,之前从未想过这三个字母代表什么意思,这次知道了: Comma-Separated Values。Python中用于处理 CSV 文件的包也叫做 csv。

5.生成 PDF 文件

Python 中用于生成 PDF 文件的包叫做 WeasyPrint。

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

1.recurring

p399, It can manage one-off payments, recurring payments for subscription services, multiparty payments for platforms and marketplaces, and more.

adj. happening regularly(定期的)。

2.freelancer

p401, If you own a business or are a freelancer, you can add your business details to activate the account and get access to process real payments.

(1)freelance: free() + lance("spear(矛), weapon(工具)")。

(2)freelancer

c.someone who works on different projects with different companies instaead of being a company employee(自由职业者)。当然,最初不是这个意思,后来逐渐的发展形成了这个意思。

三、其它

今天没有什么想说的。

四、参考资料

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)

相关推荐
海姐软件测试3 小时前
Python 自动化与 AI 结合:基于 Jenkins 的回归验证实践
人工智能·python·自动化
Haoyunyi3 小时前
2026年做期货量化,和三年前已经不是一回事了
大数据·人工智能·python·金融·区块链
再__努力1点3 小时前
一个开源的AI边缘计算平台:一个项目把算能、瑞芯微、x86的NPU全打通了
人工智能·python·课程设计·媒体·流媒体
小oo呆3 小时前
【学习心得】Python函数参数中的两个特殊分隔符
开发语言·python
SEO_juper4 小时前
AI 爬虫 robots.txt 检查工具:你的站是不是把 AI 挡在门外了
开发语言·人工智能·爬虫·python·外贸独立站
看我debug4 小时前
Android 运行时分析工作台 (Demo)。统一管理 Frida 脚本、自动注入(修改运行时代码)、收集结构化结果、生成 JSON 报告。
android·python·pip
染指11104 小时前
151.Agent-LangGraph-Send发送(Map-Reduce模式)
人工智能·python·langchain·状态模式·agents
OKkankan4 小时前
python 进阶(三):面向对象进阶——从“会写 class”到设计可维护的后端对象
开发语言·数据结构·python
用户0332126663674 小时前
Python 办公自动化:用 Python 快速生成精美 PPT 演示文稿
python
打工仔折腾 AI4 小时前
极空间部署Portainer实战:绕过Socket权限、解决9000端口冲突与固定内网访问
人工智能·后端·python·性能优化