Packt
Django Web Development

通过 Coursera Plus 获取 10,000 多门课程的 Accessibility

Packt

Django Web Development

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

1 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

1 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度

您将学到什么

  • Set up and configure a Django project from scratch.

  • Understand and apply the MVC pattern within the Django framework

  • Create and manage databases and models with Django migrations.

  • Build dynamic web pages using Django templates and Bootstrap.

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

September 2025

作业

13 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

积累特定领域的专业知识

本课程是 Python - Complete Python, Django, Data Science and ML Guide 专项课程 专项课程的一部分
在注册此课程时,您还会同时注册此专项课程。
  • 向行业专家学习新概念
  • 获得对主题或工具的基础理解
  • 通过实践项目培养工作相关技能
  • 获得可共享的职业证书

该课程共有11个模块

In this module, we will explore the foundational elements of the Django web framework, starting with an overview of its features and how it structures a web project. You will also gain an in-depth understanding of the Model-View-Controller (MVC) architecture and how Django uniquely implements this pattern. Additionally, you’ll learn how to set up a Django project in the PyCharm IDE, laying the groundwork for your development journey.

涵盖的内容

4个视频2篇阅读材料1个作业

In this module, we will guide you through creating a new Django project, explaining its default structure and key components. You will gain insight into the role of the manage.py file and how it aids in managing your Django project. Additionally, we will show you how to start and verify the Django development server, and explore key settings and routing configurations essential for your project.

涵盖的内容

5个视频1个作业

In this module, we will walk you through the process of creating a new Django application, using the 'Shop' app as a practical example. You will explore the components and files generated within the app, understand why the project is named "base," and learn how to create view functions that handle HTTP requests. We’ll also demonstrate how to link view functions to specific URLs and integrate the app’s routes into the main project routing configuration.

涵盖的内容

6个视频1个作业

In this module, we will guide you through the process of working with databases and migrations in Django. You’ll start by executing default migrations, creating a superuser, and developing models for 'Course' and 'Category' entities. We’ll show you how to apply migrations, modify database models, and create instances of 'Category' and 'Course' both in the Django shell and admin interface. Additionally, you’ll learn how to customize the way these entities are displayed in the admin panel and serve data as HTTP responses to client requests.

涵盖的内容

11个视频1个作业

In this module, we will explore the process of creating and using templates in Django. You will learn how to design HTML templates, integrate them with Django view functions, and populate the templates with dynamic data from the database. We will also break down the workflow connecting templates, views, and models in Django. Finally, you'll enhance the look of your templates by adding the Bootstrap CSS library for a more polished user interface.

涵盖的内容

5个视频1个作业

In this module, we will guide you through the process of extending templates in Django. You’ll start by creating a base HTML template that serves as the foundation for consistent UI elements across multiple views. We’ll show you how to integrate a navigation bar into this base template for easy site-wide access. Additionally, we’ll walk you through a hands-on challenge and solution for dynamically updating the title of web pages based on the content being displayed.

涵盖的内容

4个视频1个作业

In this module, we will explore how to create multiple routes and view functions in Django. You will start by setting up a specific route to display individual course detail pages and develop a corresponding view function to fetch and display the course information. We’ll present a challenge for designing an HTML template for the course page, followed by a guided solution. Finally, we’ll show you how to handle cases where a course is not found in the database by returning a 404 error response.

涵盖的内容

5个视频1个作业

In this module, we will dive into routing between pages in Django, covering how to use relative and absolute paths to navigate between different views. You’ll learn how to set up routing based on URL pattern names and the significance of app naming in the routing configuration. We will guide you through adding a navigation link to the "All Courses" page, reorganizing the project structure by moving the templates folder, and refining the 'Course' model to meet evolving requirements. Finally, we’ll introduce you to API development by installing the django-tastypie library.

涵盖的内容

8个视频1个作业

In this module, we will walk you through the creation of a dedicated Django application tailored for API development. You’ll learn how to design data models for the API, set up routing for the application's endpoints, and test the functionality of the API service. Additionally, we will cover how to implement versioning for the API to support future updates, and show you how to use Postman to send GET and DELETE requests to evaluate your API’s responses.

涵盖的内容

6个视频1个作业

In this module, we will guide you through managing authentication for API requests in Django. You will learn how to create unique API keys for users and set up authentication and authorization mechanisms, especially for DELETE requests. We will also cover how to allow public access for GET requests, create new resources via POST requests, and ensure correct data relationships between 'Course' and 'Category' using the 'Hydrate' method. Additionally, we’ll introduce the 'Dehydrate' method to modify data before sending it to the client, and wrap up the module by reviewing GET, POST, and DELETE request handling.

涵盖的内容

7个视频1个作业

In this module, we will focus on refining and optimizing your Django project setup. You’ll learn how to refactor routing configurations for the API application and set up an index route, integrating it into the site’s navigation bar. Additionally, we will guide you through modifying the Django admin panel to enhance its usability and organization. The module will conclude with a recap of the key achievements from the Django courses project, reinforcing what you’ve learned.

涵盖的内容

4个视频1篇阅读材料3个作业

获得职业证书

将此证书添加到您的 LinkedIn 个人资料、简历或履历中。在社交媒体和绩效考核中分享。

位教师

Packt - Course Instructors
Packt
1,186 门课程292,430 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题