|
所在平台: Coursera |
课程主页: https://www.coursera.org/learn/django-features-libraries
课程评论:没有评论
课程名称:Django特性与库 课程概述:在本课程中,您将学习如何构建适合终端用户使用的基于Django的Web应用程序。您将了解Cookie、会话和Django中的身份验证过程。课程中将帮助您为应用程序添加导航功能,并探索提高Django应用程序外观和感觉的简单方法。您将开始开发一个支持分类广告网站的简单应用,并逐步解决网站开发中遇到的许多问题和技术。此外,您还将学习如何将应用程序从开发环境转移到生产环境。 课程大纲: 1. **Cookie与会话**:探讨Cookie在浏览器中的工作原理及如何在Django中设置和读取Cookie,并了解Cookie如何支持Django中的会话。 2. **用户与身份验证**:Django内置了创建和使用用户账户的能力,提供强大的身份验证和授权系统,进阶应用可替换用户模型,只要符合Django的身份验证及授权系统要求。 3. **Django表单**:讲解表单如何为用户呈现需要填写的页面,并将数据发送到服务器。Django提供了广泛的支持,使我们在与HTML表单互动时,能够简化代码编写。 4. **一对多数据模型**:设计数据模型时需遵循规范化原则,避免字符串数据的重复。通过使用多个表并在两张表的行之间建立链接,一对多模式是一种替代数据复制的技术。 5. **拥有行**:本模块介绍了将数据模型中的行标记为某个用户所拥有的重要技术。通过这信息,我们可以决定谁可以编辑或查看特定行,学习如何借助Django与面向对象的Python构建可重用的“拥有行”功能。 6. **多对多模型**:更高级的数据建模方法以消除字符串数据的重复。多对多模型在表示诸如课程名单等结构时具有更大的灵活性,它本质上建模了两个一对多关系。 通过以上模块的学习,您将能够灵活运用Django构建功能强大的Web应用程序。
Name:Cookies and Sessions
Description:We explore how cookies work in the browser and how to set and read cookies in Django. We then explore how cookies are used to support sessions in Django and how we use sessions in Django.
Name:Users and Authentication
Description:Django has a built in capability to create and make use of user accounts. The built-in authentication and authorization system is quite robust. More advanced applications can replace the user model with their own model as long as thy meet the requirements of the rest of Django with respect to the authentication and authorization system.
Name:Django Forms
Description:Forms are the way that web applications present users with pages that areas to be filled in and sent to the server as data. Django has extensive support to simplify how we write code to interact with HTML forms.
Name:One to Many Data Models
Description:As we design our data models, it is important to follow normal-form and not replicate string data. We do this by using multiple tables and making link between rows of two tables. The one-to-many pattern is one technique to replace data replication using links between rows in different tables.
Name:Owned Rows
Description:This module covers the important technique of marking rows in a data model as belonging to a particular user. With this information we can decide who can edit or view particular rows. We look at how we can use Django with object-oriented Python to build a reusable "owned rows" feature.
Name:Many-to-Many Models
Description:The more advanced data modeling approach to remove replication of string data is the Many-To-Many data model. Sometimes a one-to-many model is not flexible enough to represent structures like course rosters. A Many-to-many model in essence models two on-to-many relationships.
In this course, you will learn how to build Django-based web applications suitable for use by end users. You will learn about cookies, sessions, and authentication processes in Django. You will build navigation into your applications and explore ways to easily improve the look and feel of Django applications. You will begin to develop a simple application to support a classified ads website that will walk you through many of the issues and techniques that you encounter in website development. You will also learn how to move an application from development to production.