{"id":25448849,"url":"https://github.com/mongodb/django-mongodb-backend","last_synced_at":"2025-11-11T20:58:18.655Z","repository":{"id":233313507,"uuid":"786987050","full_name":"mongodb/django-mongodb-backend","owner":"mongodb","description":"Django MongoDB Backend","archived":false,"fork":false,"pushed_at":"2025-05-13T16:53:46.000Z","size":479,"stargazers_count":145,"open_issues_count":15,"forks_count":19,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-13T17:57:47.254Z","etag":null,"topics":["django","mongodb","odm","python"],"latest_commit_sha":null,"homepage":"https://django-mongodb-backend.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-04-15T17:13:32.000Z","updated_at":"2025-05-13T16:53:50.000Z","dependencies_parsed_at":"2024-06-24T19:27:58.308Z","dependency_job_id":"6d44c2a4-d491-4abd-bd38-df636943092f","html_url":"https://github.com/mongodb/django-mongodb-backend","commit_stats":null,"previous_names":["mongodb-labs/django-mongodb","mongodb-labs/django-mongodb-backend","mongodb/django-mongodb-backend"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fdjango-mongodb-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fdjango-mongodb-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fdjango-mongodb-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fdjango-mongodb-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb","download_url":"https://codeload.github.com/mongodb/django-mongodb-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227585,"owners_count":22035665,"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","odm","python"],"created_at":"2025-02-17T20:15:19.698Z","updated_at":"2025-11-11T20:58:18.648Z","avatar_url":"https://github.com/mongodb.png","language":"Python","funding_links":[],"categories":["Database Drivers"],"sub_categories":[],"readme":"# Django MongoDB Backend\n\nDjango MongoDB Backend is a [Django](https://docs.djangoproject.com/)\ndatabase backend that uses [PyMongo](https://www.mongodb.com/docs/languages/python/pymongo-driver/)\nto connect to MongoDB.\n\n## Documentation\n\nDocumentation written in the style of MongoDB's documentation is available at\nhttps://www.mongodb.com/docs/languages/python/django-mongodb/current/.\n\nDocumentation written in the style of Django's documentation is available at\nhttps://django-mongodb-backend.readthedocs.io/en/latest/.\n\n## Quick Start\n\n### Install\n\nUse the version of `django-mongodb-backend` that corresponds to your version of\nDjango. For example, to get the latest compatible release for Django 5.2.x:\n\n```bash\npip install django-mongodb-backend==5.2.*\n```\n\n### Create a project\n\nFrom your shell, run the following command to create a new Django project\ncalled `example` using our project template. Make sure the end of the template\nURL corresponds to your version of Django (e.g. `5.2.x.zip` for any Django\n5.2.x version).\n\n```bash\ndjango-admin startproject example --template https://github.com/mongodb-labs/django-mongodb-project/archive/refs/heads/5.2.x.zip\n```\n\nYou can check what version of Django you're using with:\n\n```bash\ndjango-admin --version\n```\n\n### Connect to the database\n\nNavigate to your `example/settings.py` file and replace the `DATABASES`\nsetting using your [connection string](https://www.mongodb.com/docs/manual/reference/connection-string/):\n\n```python\nDATABASES = {\n    \"default\": {\n        \"ENGINE\": \"django_mongodb_backend\",\n        \"HOST\": \"\u003cCONNECTION_STRING_URI\u003e\",\n        \"NAME\": \"db_name\",\n    },\n}\n```\n\n\u003e [!TIP]\n\u003e You can quickly and easily [deploy a free cluster](https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/)\n\u003e with MongoDB Atlas.\n\n### Run the server\n\nTo verify that you correctly configured your project, run the following command\nfrom your project root:\n\n```bash\npython manage.py runserver\n```\n\nThen, visit http://127.0.0.1:8000/. This page displays a \"Congratulations!\"\nmessage and an image of a rocket.\n\n## Getting Help\n\nYou can ask usage questions on our [support channels](https://www.mongodb.com/docs/manual/support/).\n\n## Reporting Bugs and Requesting Features\n\nTo report a bug or request a new feature in Django MongoDB Backend, please open\nan issue in JIRA:\n\n1. [Create a JIRA account.](https://jira.mongodb.org/)\n2. Navigate to the [Python Integrations project](https://jira.mongodb.org/projects/INTPYTHON/).\n3. Click **Create Issue**. Please provide as much information as possible about\nthe issue and the steps to reproduce it.\n\nBug reports for the Django MongoDB Backend project can be viewed by everyone.\n\nIf you identify a security vulnerability in this project or in any other\nMongoDB project, please report it according to the instructions found at\n[Create a Vulnerability Report](https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fdjango-mongodb-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb%2Fdjango-mongodb-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fdjango-mongodb-backend/lists"}