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

相关推荐
2601_962078195 小时前
Python中calendar.weekday用法
python·编程技巧·calendar·日期处理·weekday
2601_962218615 小时前
万象生鲜系统业财一体化底层打通技术自动生成经营账单
大数据·数据库·人工智能·python·算法
2601_966949655 小时前
为什么量化策略需要大量历史股票数据?从回测可信度理解数据规模
开发语言·python·数据分析·pandas·量化交易·股票数据·quantdash
2601_962885725 小时前
如何用 Python 扫描 A 股跳空缺口并统计缺口回补概率?
java·前端·python
李高钢6 小时前
Python FastAPI 框架入门:从零搭建你的第一个高性能 API 服务
数据库·python·fastapi
ocean21036 小时前
2025-2026年Python面试高频知识点洞察
开发语言·python·面试·python八股文
Warson_L7 小时前
Python的OrderedDict
python
隐擎fox7 小时前
高性能网络爬虫架构设计:基于 Python 的长连接复用与分布式会话池调度实践
分布式·python·网络协议·tcp/ip·高并发·网络爬虫、
Warson_L7 小时前
Python的TypedDict
python·langchain·llm
晓窗科技8 小时前
口碑好的AI基座服务商
大数据·人工智能·python