djongo
Djongo: The Django MongoDB connector
Decision gist · record as of 2026-08-14
Yes, if you need to use MongoDB with Django and are comfortable with Alpha-stage software. The low install friction, active maintenance, and permissive license make it accessible. However, verify that your specific Django version and query patterns are supported, and test thoroughly in a non-production environment first—the Alpha status means edge cases and compatibility gaps may exist.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or above; MongoDB must be running and accessible at the configured connection details.
- Low install friction with a pure-Python wheel.
- Active maintenance with a recent commit on 2026-07-18 and 1922 repository stars.
License · maintenance · safety
AGPL (permissive) — Licensed under AGPL with permissive treatment, meaning you can use it freely but derivative works must also be open-source under compatible terms.
last release 2024-11-12 (640 days) · last repo commit 2026-07-18 · 1,922 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,114 downloads/mo, #14,183 on PyPI
Alternatives
Verify before relying
pip install djongo
# In Django settings.py:
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'your-db-name',
}
}
# Then run:
python manage.py makemigrations
python manage.py migrate- Whether all Django contrib modules (admin, auth, sessions) work reliably in practice with complex queries.
- Performance characteristics compared to native Django database backends for typical workloads.
- Compatibility with the latest Django versions beyond what the classifiers indicate.
What it is and what it does
Djongo is a Django database backend that bridges Django's ORM to MongoDB by translating SQL queries into MongoDB query documents. It lets you use MongoDB as your primary database for a Django project without rewriting your models or changing your Django code—you configure it in settings.py and run migrations as normal. The package acts as a SQL-to-MongoDB transpiler, so Django's standard features like the admin interface, authentication, and sessions are meant to work out of the box.
The package depends on sqlparse for query parsing, pymongo for MongoDB communication, django itself, and pytz for timezone handling. It is maintained actively and has a low installation footprint as a pure-Python wheel. However, it carries an Alpha classification, indicating that the API and behavior may still evolve; users should expect this to be a work-in-progress integration rather than a production-hardened solution.
Use it for
- Migrate an existing Django project to MongoDB without rewriting models or ORM calls.
- Use MongoDB's document model while keeping Django's admin interface and authentication system.
- Prototype a Django application with MongoDB as the backing store to evaluate the document database approach.
- Run Django migrations and manage schema changes through MongoDB collections using standard Django tooling.
- Leverage Django contrib modules like sessions and auth with MongoDB as the persistence layer.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to use MongoDB with Django and are comfortable with Alpha-stage software.
The low install friction, active maintenance, and permissive license make it accessible. However, verify that your specific Django version and query patterns are supported, and test thoroughly in a non-production environment first—the Alpha status means edge cases and compatibility gaps may exist.
Install
djongo on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a recent commit on 2026-07-18 and 1922 repository stars. Classified as Alpha, so expect ongoing development and potential API changes.
Requires Python 3.6 or above; MongoDB must be running and accessible at the configured connection details.
License in practice
Licensed under AGPL with permissive treatment, meaning you can use it freely but derivative works must also be open-source under compatible terms.
Quickstart
pip install djongo
# In Django settings.py:
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'your-db-name',
}
}
# Then run:
python manage.py makemigrations
python manage.py migrate
Verify before relying
- Whether all Django contrib modules (admin, auth, sessions) work reliably in practice with complex queries.
- Performance characteristics compared to native Django database backends for typical workloads.
- Compatibility with the latest Django versions beyond what the classifiers indicate.
Package facts
| License | AGPL permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagessqlparsepymongodjangopytz |
| Maintenance | Actively maintained 640 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,114 / month, #14,183 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3.6 |
Evidence: djongo-1.3.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django mongodb connector”
- djongoDjongo translates Django ORM queries into MongoDB queries, allowing…
- mongoengineMongoEngine provides an Object-Document Mapper (ODM) layer on top of…
- pymongoPyMongo is the official MongoDB Python driver, providing synchronous…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also mongo-query-match · Flask-PyMongo · odata-query · sqlalchemy-bigquery · django-snowflake · django-query-builder · mongoengine · django-clickhouse · curatorbin · django-tasks-db