Click here to Skip to main content
15,893,337 members
Articles / Hosted Services / Azure

Creating a Python Cloud-Native Webapp, Part 2: Adding an Azure Cosmos DB Database

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
6 Jan 2022CPOL8 min read 8.5K   2  
In this article, we’ll build on what we started by adding an Azure Cosmos DB database to our Flask web app.
We’ll create it using Azure Databases for VSCode, and we’ll connect to it using the Cosmos DB API for MongoDB and the PyMongo client. We’ll add the code needed to get our app hooked up to its new database, and we’ll show how to run a migration to automatically create our database schema.

This article is a sponsored article. Articles such as these are intended to provide you with information on products and services that we consider useful and of value to developers

Views

Daily Counts

This article is part of the series 'Cloud Native Python on Azure View All

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Hi! I'm a Solution Architect, planning and designing systems based in Denver, Colorado. I also occasionally develop web applications and games, as well as write. My blog has articles, tutorials and general thoughts based on more than twenty years of misadventures in IT.

Comments and Discussions