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

相关推荐
Dxy123931021641 分钟前
Python基于BERT的上下文纠错详解
开发语言·python·bert
SiYuanFeng2 小时前
Colab复现 NanoChat:从 Tokenizer(CPU)、Base Train(CPU) 到 SFT(GPU) 的完整踩坑实录
python·colab
炸炸鱼.3 小时前
Python 操作 MySQL 数据库
android·数据库·python·adb
_深海凉_3 小时前
LeetCode热题100-颜色分类
python·算法·leetcode
AC赳赳老秦4 小时前
OpenClaw email技能:批量发送邮件、自动回复,高效处理工作邮件
运维·人工智能·python·django·自动化·deepseek·openclaw
zhaoshuzhaoshu4 小时前
Python 语法之数据结构详细解析
python
AI问答工程师4 小时前
Meta Muse Spark 的"思维压缩"到底是什么?我用 Python 复现了核心思路(附代码)
人工智能·python
zfan5205 小时前
python对Excel数据处理(1)
python·excel·pandas
小饕5 小时前
我从零搭建 RAG 学到的 10 件事
python
老歌老听老掉牙6 小时前
PyQt5+Qt Designer实战:可视化设计智能参数配置界面,告别手动布局时代!
python·qt