{"id":13415632,"url":"https://github.com/doableware/djongo","last_synced_at":"2026-04-05T17:38:42.835Z","repository":{"id":37413770,"uuid":"97014480","full_name":"doableware/djongo","owner":"doableware","description":"Django and MongoDB database connector","archived":false,"fork":false,"pushed_at":"2025-04-28T11:43:11.000Z","size":16288,"stargazers_count":1919,"open_issues_count":353,"forks_count":358,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-05-08T12:16:39.499Z","etag":null,"topics":["django","mongodb","nosql","nosql-databases","pymongo","relational-databases","sql"],"latest_commit_sha":null,"homepage":"https://www.djongomapper.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doableware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-07-12T14:00:41.000Z","updated_at":"2025-05-06T19:12:33.000Z","dependencies_parsed_at":"2023-02-12T18:01:18.203Z","dependency_job_id":"2ed61109-204e-465a-aeb9-5f1b6c08364b","html_url":"https://github.com/doableware/djongo","commit_stats":{"total_commits":647,"total_committers":55,"mean_commits":"11.763636363636364","dds":0.2890262751159196,"last_synced_commit":"cce9dfe3de6514b9259b7edd3ee5d7968204778a"},"previous_names":["nesdis/djongo"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doableware%2Fdjongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doableware%2Fdjongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doableware%2Fdjongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doableware%2Fdjongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doableware","download_url":"https://codeload.github.com/doableware/djongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253256490,"owners_count":21879272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","mongodb","nosql","nosql-databases","pymongo","relational-databases","sql"],"created_at":"2024-07-30T21:00:50.922Z","updated_at":"2025-12-12T00:44:54.184Z","avatar_url":"https://github.com/doableware.png","language":"Python","readme":"\u003ch1\u003edjongo\u003c/h1\u003e\n\n[//]: # ([![Build Status]\u0026#40;https://travis-ci.com/nesdis/djongo.svg?branch=master\u0026#41;]\u0026#40;https://travis-ci.com/nesdis/djongo\u0026#41;)\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n\u003ca href=\"https://badge.fury.io/py/djongo\"\u003e\u003cimg src=\"https://badge.fury.io/py/djongo.svg\" alt=\"PyPI version\" height=\"18\"\u003e\u003c/a\u003e\n\n ## The only connector that lets you use Django with MongoDB *without* changing the Django ORM\n\nUse MongoDB as a backend database for your Django project, without changing the Django ORM.\nUse the Django Admin GUI to add and modify documents in MongoDB. \n\n## Usage:\n\u003col\u003e\n\u003cli\u003e Install djongo:\n\n``` \npip install djongo\n```\n\u003c/li\u003e\n\u003cli\u003e Into settings.py file of your project, add: \n\n```python\nDATABASES = {\n    'default': {\n        'ENGINE': 'djongo',\n        'NAME': 'your-db-name',\n        'CLIENT': {\n           'host': 'your-db-host',\n        }\n    }\n}\n```\n\u003c/li\u003e   \n   \u003cli\u003e Run \u003ccode\u003emanage.py makemigrations \u0026ltapp_name\u0026gt \u003c/code\u003e followed by \u003ccode\u003emanage.py migrate\u003c/code\u003e (ONLY the first time to create collections in mongoDB) \u003c/li\u003e\n   \u003cli\u003e YOUR ARE SET! HAVE FUN! \u003c/li\u003e\n\u003c/ol\u003e\n\n## Requirements:\n\n  1. Python 3.6 or higher.\n  2. MongoDB 3.4 or higher.\n  3. If your models use nested queries or sub querysets like:\n  \n      ```python\n      inner_qs = Blog.objects.filter(name__contains='Ch').values('name')\n      entries = Entry.objects.filter(blog__name__in=inner_qs)\n      ```\n     MongoDB 3.6 or higher is required.\n\n## How it works\n\ndjongo is a SQL to mongodb query compiler. It translates a SQL query string into a mongoDB query document.\nAs a result, all Django features, models etc. work as is.\n  \n  Django contrib modules: \n\u003cpre\u003e\u003ccode\u003e  \n'django.contrib.admin',\n'django.contrib.auth',    \n'django.contrib.sessions',\n\n\u003c/code\u003e\u003c/pre\u003e\n and others... fully supported.\n\n## Features\n\n  * Use Django Admin GUI to access MongoDB.  \n  * Embedded Model.\n  * Embedded Array.\n  * Embedded Form Fields.\n  \n  Read the [full documentation](https://www.djongomapper.com/)\n  \n## Contribute\n \nIf you think djongo is useful, **please share it** with the world! \n\nYou can contribute to the source code or the documentation by creating a simple pull request! \nYou may want to refer to the design documentation to get\nan idea on how [Django MongoDB connector](https://www.djongomapper.com/djongo/django-mongodb-connector-design-document/)\nis implemented.\n\nAdd a star, show some love :) \n\n## Questions and Discussion\n\n * [Djongo groups](https://groups.google.com/d/forum/djongo) is where you can watch for new release announcements, suggest improvements, and discuss topics pertaining to Django and MongoDB.\n * Issues, where things are not working as expected, please raise a git-hub issue ticket. \n * For questions and clarifications regarding usage, please put it up on stackoverflow instead. \n   \n","funding_links":[],"categories":["Third-Party Packages","Python"],"sub_categories":["Database Connectors","Database connectors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoableware%2Fdjongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoableware%2Fdjongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoableware%2Fdjongo/lists"}