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

相关推荐
孟健15 小时前
Karpathy 用 200 行纯 Python 从零实现 GPT:代码逐行解析
python
码路飞17 小时前
写了个 AI 聊天页面,被 5 种流式格式折腾了一整天 😭
javascript·python
曲幽19 小时前
FastAPI压力测试实战:Locust模拟真实用户并发及优化建议
python·fastapi·web·locust·asyncio·test·uvicorn·workers
敏编程1 天前
一天一个Python库:jsonschema - JSON 数据验证利器
python
前端付豪1 天前
LangChain记忆:通过Memory记住上次的对话细节
人工智能·python·langchain
databook1 天前
ManimCE v0.20.1 发布:LaTeX 渲染修复与动画稳定性提升
python·动效
花酒锄作田2 天前
使用 pkgutil 实现动态插件系统
python
前端付豪2 天前
LangChain链 写一篇完美推文?用SequencialChain链接不同的组件
人工智能·python·langchain
曲幽2 天前
FastAPI实战:打造本地文生图接口,ollama+diffusers让AI绘画更听话
python·fastapi·web·cors·diffusers·lcm·ollama·dreamshaper8·txt2img
老赵全栈实战2 天前
Pydantic配置管理最佳实践(一)
python