上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页
摘要: 《Django 5 By Example》学习第12天,p339-p358总结,总计20页。 一、技术总结 1.项目(购物网站) django-admin startproject myshop 虽然这里只是示例,但我觉得这种命名为 myxxx 的习惯非常不好,因为在实际应用中,是不允许这样命名的, 阅读全文
posted @ 2024-11-26 22:56 codists 阅读(14) 评论(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 阅读(22) 评论(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 阅读(476) 评论(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 阅读(17) 评论(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 阅读(42) 评论(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 阅读(14) 评论(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 阅读(39) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第6天,p165-p210总结,总计46页。 一、技术总结 1.bookmarks项目 (1)登录认证 作者这里使用的是Django自带的auth。 (2)上传头像 图片处理,使用Pillow。 (3)扩展user 扩展user模型与自带的user使用外 阅读全文
posted @ 2024-11-16 17:02 codists 阅读(23) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第5天,p105-p164总结,总计60页。 一、技术总结 1.文章标签功能 Django自带django-taggit。 2.自定义template tags 3.roadmap功能 4.RSS功能 5.full-text搜索功能 这里使用的是Post 阅读全文
posted @ 2024-11-16 00:05 codists 阅读(24) 评论(0) 推荐(0)
摘要: 《Django 5 By Example》学习第4天,p76-p104总结,总计29页。 一、技术总结 1.环境变量管理 这里作者使用的是:python-decouple,本人在实际项目中使用的是python-dotenv,这里只是简单的使用,感觉两者差不多。 2.评论功能 评论功能设计的时候主要考 阅读全文
posted @ 2024-11-14 15:42 codists 阅读(40) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页