A Guide to Django ORM Master the Art of Querying Database

所在平台: Udemy

课程主页: https://www.udemy.com/course/a-guide-to-django-orm-master-the-art-of-querying-database/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程概述:Django ORM 数据库查询精通指南** 本课程深入讲解 Django ORM 的核心概念和强大功能。Django ORM 作为 Django 框架的关键组成部分,能够以面向对象的方式简化数据库操作。 课程将以一个博客项目为例,重点演示 Django ORM 的多样化应用,以及如何通过优化数据库查询来提升项目性能。特别强调数据库查询的重要性,帮助学员建立作为 Django 开发者的信心。 **核心学习内容:** * **基础入门:** * 虚拟环境的创建与配置 * 在虚拟环境中创建和设置 Django 项目 * 模型(Models)的编写 * 数据库迁移(Migrations) * Django Admin 管理面板的使用 * 数据库关系(一对一、一对多、多对多) * 主键(Primary Key)、详细名称(Verbose Name) * 模型方法(Model Methods) * Meta 选项 * 数据库的 CRUD 操作(创建、读取、更新、删除) * **高级查询技巧:** * `order_by`、`values`、`only`、`defer` 方法的应用 * 使用 Django ORM 执行 union、intersection 和 difference 操作 * 字段查找(Field Lookups) * 查询数据库关系 * **Q 对象 (Q objects) 和 F 表达式 (F expressions)** 的深入解析 * `select_related` 和 `prefetch_related` 的使用,优化关联查询 * **执行原生 SQL 查询 (raw SQL query)** 通过本课程的学习,学员将能够熟练掌握 Django ORM 提供的各种查询方法和技巧,并将这些知识灵活应用于任何 Django 项目中。

课程评论(0条)

课程详情

In this course, you are going to learn various concepts related to Django ORM. Django ORM is a core and powerful component of the Django Framework. Using this ORM, we can simplify the database-related operations in an object-oriented way. In this course, you are going to learn how to model for a Blogging project. The agenda is not to make a blogging site, but to teach you about what can you do with the Django ORM and what Django ORM has to offer, to make your project performant. Then, we will deep dive into querying the database which is the most important section of this course. Without knowing how to query the database, you are never going to feel confident as a Django developer. So, you will be taught different things about queryset API provided by Django ORM in order to interact with the databases. You are going to learn various methods which are used in CRUD operations. Like order_by, values, only, defer, select_related, prefetch_related, Q objects, F expressions, raw SQL query, and many more. At the end of this course, you will get familiar with the following topics, and you can apply this learning in any Django project.Virtual EnvironmentsCreating and Setting up Django Project in a virtual environmentWriting ModelsMigrationsDjango Admin PanelDatabase RelationshipsPrimary Key, Verbose NameModel MethodsMeta OptionsDatabase CRUD OperationUsing order_by, values, only, defer methodsPerforming union, intersection, and difference using Django ORMPerforming field LookupsQuerying Database RelationshipsAbout Q objects, F expressionSelect Related and Prefetch RelatedPerforming raw SQL query and many more

课程标签

0人关注该课程

主题相关的课程