How to use Django with Azure's CosmosDB? How to use Django with Azure's CosmosDB? azure azure

How to use Django with Azure's CosmosDB?


There's a fork that supports MongoDB as a Django database:

https://github.com/django-nonrel/mongodb-engine

You just need to select the MongoDB Api in your Azure Cosmos DB.


mongodb-engine seems dead, but I found djongo, which seems to be active:

https://github.com/nesdis/djongo

It's a connector that lets you use Django with MongoDB without changing the Django ORM.

You would need to configure your Azure Cosmos DB for MongoDB.