Packt
Django (Python) Web Framework - The Comprehensive Guide
Packt

Django (Python) Web Framework - The Comprehensive Guide

包含在 Coursera Plus

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

推荐体验

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

推荐体验

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

您将学到什么

  • Build full-stack web applications using Django's Model-View-Template architecture

  • Manage databases and handle migrations using Django’s ORM

  • Create user-friendly interfaces with templates, Bootstrap, and dynamic routing

  • Deploy your Django application to Heroku for real-world use

要了解的详细信息

可分享的证书

添加到您的领英档案

作业

17 项作业

授课语言:英语(English)

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

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

该课程共有17个模块

In this module, we will set the stage for your Django learning journey by introducing the course structure and its objectives. You will gain an overview of the Django framework, its key features, and how it simplifies web development. Additionally, we will explore the basics of web architecture, focusing on server-client interactions, to provide a solid foundation for the concepts to follow.

涵盖的内容

3个视频1篇阅读材料

In this module, we will guide you through setting up a development environment tailored for Django projects. You will learn how to install Python on both Windows and macOS, download and configure Visual Studio Code, and install essential Python extensions. By the end of this module, you will have successfully run your first Python program in VS Code, ensuring your environment is ready for advanced development tasks.

涵盖的内容

5个视频1个作业1个插件

In this module, we will take a deep dive into the core concepts and architecture of the Django web framework. You will set up Django, explore its project structure, and learn the differences between projects and apps. We will unravel the MVT architecture and examine how Django integrates backend and frontend functionality. You’ll also work with templates to dynamically render data and implement advanced features like loops, conditions, and template inheritance to streamline your web development process.

涵盖的内容

15个视频1个作业1个插件

In this module, we will delve into Django models and the ORM (Object-Relational Mapping) system to simplify database interactions. You will learn to define models, establish relationships, and manage migrations to reflect database schema changes. We will explore the Django Admin interface to manage models and data visually. Additionally, you’ll work with the Django shell for hands-on data manipulation and restructure project templates and apps for better organization. By the end of this module, you will have a solid understanding of creating and managing data-driven Django applications.

涵盖的内容

14个视频1个作业1个插件

In this module, we will focus on the Django QuerySet API, which enables powerful and efficient database querying. You will learn to use filters and lookups to extract specific data, chain multiple filters for advanced queries, and handle complex conditions with the Q object. We’ll also cover slicing and aggregation techniques to process QuerySets and explore QuerySet methods like values and exists for precise and optimized data handling. By mastering these tools, you will be equipped to manage data queries effectively in Django applications.

涵盖的内容

8个视频1个作业1个插件

In this module, we will dive into Django's templating engine to create dynamic and reusable templates. You’ll learn to build a base.html layout with navigation and footer elements and populate templates with recipe and category data. We will explore URL template tags for smooth navigation, implement class-based views for enhanced modularity, and handle dynamic filtering to display customized content. By the end of this module, you will have the skills to design interactive and scalable web pages using Django templates.

涵盖的内容

12个视频1个作业1个插件

In this module, we will explore the power of Django forms for handling user inputs and managing data submissions. You’ll learn to create, validate, and customize forms, including dropdown menus and pre-filled fields, to simplify user interactions. We’ll also cover redirecting users after form submissions and discuss how to use widgets to improve form design. By the end of this module, you’ll have the expertise to build interactive and user-friendly input systems in Django applications.

涵盖的内容

10个视频1个作业1个插件

In this module, we will focus on building authentication and authorization functionality in Django. You’ll learn about the Django User object and its importance in managing user data. We will guide you through creating user registration, login, and logout features, along with designing corresponding templates. Additionally, you’ll tackle issues like route duplication to ensure a smooth and user-friendly authentication process in your Django applications.

涵盖的内容

5个视频1个作业1个插件

In this module, we will transform your Django web app by incorporating Bootstrap for responsive and visually appealing designs. You’ll style key templates, such as the main page, category, and recipe templates while learning to format data with filters. With Bootstrap components, you’ll enhance forms and navigation elements, creating a cohesive and professional user experience. By the end of this module, your Django app will be both functional and stylish.

涵盖的内容

8个视频1个作业1个插件

In this module, we will extend Django's authentication system by creating user profiles linked to the User object. You’ll learn to integrate user data into models like recipes and comments while designing and styling profile editing templates. We’ll add features like user avatars and implement navigation to user profiles from the navbar. Additionally, you’ll implement authentication-based access controls to restrict features like commenting to logged-in users. By the end of this module, your app will provide a personalized and secure user experience.

涵盖的内容

22个视频1个作业1个插件

In this module, we will explore the Django messaging framework to provide user notifications and feedback. You’ll learn to display messages in templates and style them with Bootstrap alerts for improved user experience. We’ll also introduce a search bar, guiding you through its implementation, styling, and finalizing its functionality. Finally, you’ll work with the Q object to build advanced search filters, enhancing the interactivity and functionality of your Django application.

涵盖的内容

8个视频1个作业1个插件

In this module, we will dive into session management in Django to track and store user-specific data across requests. You’ll learn to set up sessions, manage visit counts, and handle session deletion or flushing. We’ll also cover displaying session expiration times and apply these concepts in a hands-on project by building a feedback form review step. By the end of this module, you’ll understand how to leverage sessions to create dynamic and user-friendly web applications.

涵盖的内容

5个视频1个作业1个插件

In this module, we will enhance your Django app by adding a favorites feature, allowing users to mark recipes they like. You’ll create toggle functionality, set up views and URLs, and display favorite recipes seamlessly. The user experience will be elevated with FontAwesome icons and styled navbar buttons. Additionally, you’ll test the functionality for both logged-in and logged-out users to ensure reliability and accessibility. By the end, your app will have an engaging and user-centric feature.

涵盖的内容

7个视频1个作业1个插件

In this module, we will focus on managing recipe data by adding delete and update functionalities. You’ll learn to securely delete recipes and create intuitive interfaces for editing and updating existing ones. We’ll also address the importance of validations and permissions to ensure only authorized actions are performed. By the end of this module, your app will support comprehensive recipe management capabilities.

涵盖的内容

2个视频1个作业1个插件

In this module, we will introduce the Django REST Framework (DRF) to build robust REST APIs for your Django application. You’ll start by understanding REST principles, then create serializers to convert models into JSON format. We’ll guide you through implementing API endpoints, adding recipes via API views, and nesting serializers to represent related data. By the end of this module, you’ll be equipped to design and implement scalable and efficient APIs for your Django projects.

涵盖的内容

6个视频1个作业1个插件

In this module, we will guide you through deploying your Django web application to Heroku. You’ll start by setting up Heroku and configuring your project with a Procfile for deployment. We’ll then perform a full deployment walkthrough, ensuring your app is live and functional on the web. By the end of this module, you’ll understand the complete process of deploying Django projects to a production environment.

涵盖的内容

3个视频1个作业1个插件

In this final module, we will conclude the course by revisiting the key concepts and accomplishments from your Django journey. You’ll gain insights into practical applications of your newly acquired skills and receive guidance on advancing your knowledge with more complex Django topics. We’ll also provide suggestions for potential projects and career paths to help you apply what you’ve learned and continue growing as a Django developer.

涵盖的内容

1个视频2个作业

位教师

Packt - Course Instructors
Packt
971 门课程231,340 名学生

提供方

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 的全球公司

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

常见问题