Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. MongoDB
  3. Djongo

Djongo

AGPL-3.0Python1.2.23

A Django database connector that enables using MongoDB as a backend without modifying the Django ORM.

Visit WebsiteGitHubGitHub
1.9k stars354 forks0 contributors

What is Djongo?

Djongo is a database connector that allows Django projects to use MongoDB as a backend database while maintaining full compatibility with the Django ORM. It translates SQL queries into MongoDB query documents, enabling developers to leverage MongoDB's flexibility without altering their Django models or admin interface. This bridges the gap between Django's robust ORM and MongoDB's document-oriented flexibility.

Target Audience

Django developers who want to use MongoDB as their database backend without modifying their existing Django models, ORM queries, or admin interface.

Value Proposition

Developers choose Djongo because it is the only connector that lets them use MongoDB with Django without changing the Django ORM, allowing them to retain all Django features like the admin GUI, contrib modules, and ORM compatibility while benefiting from MongoDB's document storage.

Overview

Django and MongoDB database connector

Use Cases

Best For

  • Django projects requiring MongoDB as a backend database without ORM changes.
  • Using the Django Admin GUI to directly manage MongoDB documents.
  • Implementing embedded documents and arrays within Django models for MongoDB.
  • Migrating Django applications to MongoDB while preserving existing model and query code.
  • Leveraging Django contrib modules (e.g., admin, auth, sessions) with MongoDB.
  • Handling nested queries or subquerysets in Django that target MongoDB.

Not Ideal For

  • Projects requiring extensive use of MongoDB-specific features like aggregation pipelines that are not natively supported by Django ORM.
  • Teams that prioritize maximum MongoDB performance and prefer writing native queries without the overhead of SQL translation.
  • Applications that need to support older versions of MongoDB below 3.4, as Djongo has specific version requirements.
  • Developers who want full control over database operations and prefer using MongoDB's native drivers or ODMs like PyMongo or MongoEngine.

Pros & Cons

Pros

Full Django ORM Compatibility

Maintains all Django ORM features, including contrib modules like admin and auth, without code changes, as emphasized in the README's key features.

Integrated Admin GUI

Enables direct management of MongoDB documents through the Django Admin interface, allowing CRUD operations as shown in the usage section.

Embedded Document Support

Supports embedded models and arrays within Django models, leveraging MongoDB's document-oriented flexibility for nested data structures.

Straightforward Setup

Easy installation via pip and minimal configuration in settings.py, with clear steps to get started quickly, as outlined in the usage instructions.

Cons

Query Translation Overhead

Translates SQL queries to MongoDB, which can introduce performance latency and may not optimize complex queries as efficiently as native MongoDB operations.

Limited Native Feature Access

Relies on Django ORM abstraction, so advanced MongoDB features like aggregation pipelines might require workarounds or raw queries, limiting flexibility.

Version Dependency Constraints

Requires MongoDB 3.4 or higher, and for nested queries, 3.6 or higher, which can be a barrier for environments with legacy database versions.

Frequently Asked Questions

Quick Stats

Stars1,921
Forks354
Contributors0
Open Issues341
Last commit4 days ago
CreatedSince 2017

Tags

#database-driver#nosql#python#mongodb#django-admin#pymongo#backend#nosql-databases#relational-databases#django#sql

Built With

D
Django
M
MongoDB
P
Python

Links & Resources

Website

Included in

MongoDB2.6k
Auto-fetched 9 hours ago

Related Projects

PyMongoPyMongo

PyMongo - the Official MongoDB Python driver

Stars4,358
Forks1,158
Last commit20 hours ago
MongoEngineMongoEngine

A Python Object-Document-Mapper for working with MongoDB

Stars4,350
Forks1,230
Last commit1 day ago
BeanieBeanie

Asynchronous Python ODM for MongoDB

Stars2,696
Forks308
Last commit7 days ago
MotorMotor

Motor - the async Python driver for MongoDB and Tornado or asyncio

Stars2,526
Forks216
Last commit7 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub