Building Web Applications in Django

所在平台: Coursera

课程主页: https://www.coursera.org/learn/django-build-web-apps

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:使用 Django 构建网络应用程序 概述:在本课程中,您将学习 Django 如何通过模型对象与数据库进行通信。您将探索对象关系映射(ORM)用于数据库访问的方式,以及 Django 模型如何实现这一模式。我们将回顾 Python 中的面向对象(OO)模式。您将学习基本的结构化查询语言(SQL)和数据库建模,包括一对多和多对多关系,以及它们在 SQL 和 Django 模型中的运作方式。您将学习如何使用 Django 控制台和脚本互动地操作应用程序对象。 课程大纲: 1. 数据模型: - 描述:本部分探讨如何在 Django 中定义模型,构建数据模型并探索应用程序的管理界面。数据模型是 Django 与底层数据库交互以存储和检索数据的方式。 2. Django 视图: - 描述:视图是 Django 应用程序生成的网页部分,展示给用户。视图是 Django 应用程序的核心元素之一。 3. Django 通用视图: - 描述:我们回顾 Python 面向对象的概念,并查看 Django 中通用视图的功能。通过扩展 Django 类来创建新的视图类。 4. HTTP 和 HTML 中的表单: - 描述:我们讨论 GET 和 POST 的工作原理,HTML 表单的构建方式,如何保护应用程序免受跨站请求伪造(CSRF)的攻击,以及如何处理 POST 操作后的浏览器刷新。 通过本课程,您将深入理解 Django 的基本原理和实用技巧,以便能够有效地开发和管理网络应用程序。

课程大纲

Name:Data Models

Description:This section explores how we define models in Django and then we build the data models and explore the administration interface for our application. Data models are how Django interacts with the underlying database to store and retrieve data.

Name:Django Views

Description:Views are the aspect of Django applications that produce the web pages that are shown to our users. Views are one of several core elements of Django applications.

Name:Django Generic Views

Description:We review Python Object Orientation and look at the generic views capability within Django. We use generic views by extending Django classes to make a new view class.

Name:Forms in HTTP and HTML

Description:We cover how GET and POST work, how forms are constructed from HTML, how we protect our applications against Cross-Site Scripting Forgery (CSRF), and how we handle browser refreshes after POST.

课程评论(0条)

课程详情

In this course, you will learn how Django communicates with a database through model objects. You will explore Object-Relational Mapping (ORM) for database access and how Django models implement this pattern. We will review the Object-Oriented (OO) pattern in Python. You will learn basic Structured Query Language (SQL) and database modeling, including one-to-many and many-to-many relationships and how they work in both the SQL and Django models. You will learn how to use the Django console and scripts to work with your application objects interactively.

课程标签

0人关注该课程

主题相关的课程