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

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

一、技术总结

1.celery

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

2.flower

用于监控 celery。

# 安装 
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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值