使用 Microsoft Graph 生成 Python Django 应用

本教程指导你如何生成使用 Microsoft Graph API 检索用户的日历信息的 Python Django Web 应用。This tutorial teaches you how to build a Python Django web app that uses the Microsoft Graph API to retrieve calendar information for a user.

提示

如果你更喜欢仅下载已完成的教程,可以通过两种方式下载它。If you prefer to just download the completed tutorial, you can download it in two ways.

先决条件Prerequisites

在开始本教程之前,应在开发计算机上安装 Python (管道) 管道连接。Before you start this tutorial, you should have Python (with pip) installed on your development machine. 如果没有 Python,请访问上一链接,查看下载选项。If you do not have Python, visit the previous link for download options.

你还应该拥有具有邮箱的个人 Microsoft 帐户Outlook.com或 Microsoft 工作或学校帐户。You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. 如果你没有 Microsoft 帐户,则有几个选项可以获取免费帐户:If you don't have a Microsoft account, there are a couple of options to get a free account:

备注

本教程使用 Python 版本 3.9.0 和 Django 版本 3.1.4 编写。This tutorial was written with Python version 3.9.0 and Django version 3.1.4. 本指南中的步骤可能与其他版本一起运行,但尚未经过测试。The steps in this guide may work with other versions, but that has not been tested.

反馈Feedback

请在 GitHub 存储库中提供有关本教程 的任何反馈Please provide any feedback on this tutorial in the GitHub repository.