上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页
摘要: 《Django 5 By Example》学习第 15 天,p388-p454 总结,总计 66 页。 一、技术总结 1.celery 我觉得书中这种用法太简单了。 2.flower 用于监控 celery。 # 安装 pip install flower # 启动 celery -A myshop 阅读全文
posted @ 2024-11-29 23:30 codists 阅读(40) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第 14 天,p383-p387 总结,总计 5 页。 一、技术总结 1. asynchronous task(异步任务) 对于异步任务,书中使用的是 celery 和 RabbitMQ,这也是平时工作中的主流用法。 (1) celery Python 阅读全文
posted @ 2024-11-28 23:17 codists 阅读(50) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第13天,p359-p382总结,总计24页。 一、技术总结 1.session (1)session 存储方式 Database sessions File-based sessions Cached sessions Cached database 阅读全文
posted @ 2024-11-27 23:00 codists 阅读(36) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第12天,p339-p358总结,总计20页。 一、技术总结 1.项目(购物网站) django-admin startproject myshop 虽然这里只是示例,但我觉得这种命名为 myxxx 的习惯非常不好,因为在实际应用中,是不允许这样命名的, 阅读全文
posted @ 2024-11-26 22:56 codists 阅读(23) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第11天,p237-p338总结,总计102页。 一、技术总结 1.follow system(关注功能) 表之间的关系有三种:OneToOneField,many-to-one(使用Foreignkey()),ManyToManyField。有时候为了 阅读全文
posted @ 2024-11-25 21:46 codists 阅读(40) 评论(0) 推荐(0)
摘要: 目录环境说明问题描述原因分析解决方法 环境说明 系统 # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codena 阅读全文
posted @ 2024-11-22 23:00 codists 阅读(910) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第10天,p679-p765总结,总计87页。 一、技术总结 1.channel 书里通过聊天软件功能演示Django中channel以及异步编程的应用,本人对这块不是很熟悉,不做评价。 2.deployment(部署) services: db: im 阅读全文
posted @ 2024-11-20 17:50 codists 阅读(38) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第9天,p651-p678总结,总计28页。 一、技术总结 1.aggregate() (1)aggregate:ad-("to") + gregare("to collection into a flock(群), to gather") 因为ad 后 阅读全文
posted @ 2024-11-19 23:43 codists 阅读(63) 评论(0) 推荐(1)
摘要: 《Django 5 By Example》学习第8天,p645-p650总结,总计6页。 一、技术总结 1.django-rest-framework (1)serializer p648, Serializer: Provides serialization for normal Python c 阅读全文
posted @ 2024-11-18 23:51 codists 阅读(32) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第7天,p211-p236总结,总计26页。 一、技术总结 1.messages(消息推送) django.contrib.messages。 2.OAuth 2 Django里使用的是social-app-django这个package进行认证操作。 阅读全文
posted @ 2024-11-17 22:37 codists 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页