Django MongoDB Backend
Project description
Django MongoDB Backend
Django MongoDB Backend is a Django database backend that uses PyMongo to connect to MongoDB.
Documentation
Documentation written in the style of MongoDB's documentation is available at https://www.mongodb.com/docs/languages/python/django-mongodb/current/.
Documentation written in the style of Django's documentation is available at https://django-mongodb-backend.readthedocs.io/en/latest/.
Quick Start
Install
Use the version of django-mongodb-backend that corresponds to your version of
Django. For example, to get the latest compatible release for Django 6.0.x:
pip install django-mongodb-backend==6.0.*
Create a project
From your shell, run the following command to create a new Django project
called example using our project template. Make sure the end of the template
URL corresponds to your version of Django (e.g. 6.0.x.zip for any Django
6.0.x version).
django-admin startproject example --template https://github.com/mongodb-labs/django-mongodb-project/archive/refs/heads/6.0.x.zip
You can check what version of Django you're using with:
django-admin --version
Connect to the database
Navigate to your example/settings.py file and replace the DATABASES
setting using your connection string:
DATABASES = {
"default": {
"ENGINE": "django_mongodb_backend",
"HOST": "<CONNECTION_STRING_URI>",
"NAME": "db_name",
},
}
[!TIP] You can quickly and easily deploy a free cluster with MongoDB Atlas.
Run the server
To verify that you correctly configured your project, run the following command from your project root:
python manage.py runserver
Then, visit http://127.0.0.1:8000/. This page displays a "Congratulations!" message and an image of a rocket.
Getting Help
You can ask usage questions on our support channels.
Reporting Bugs and Requesting Features
To report a bug or request a new feature in Django MongoDB Backend, please open an issue in JIRA:
- Create a JIRA account.
- Navigate to the Python Integrations project.
- Click Create Issue. Please provide as much information as possible about the issue and the steps to reproduce it.
Bug reports for the Django MongoDB Backend project can be viewed by everyone.
If you identify a security vulnerability in this project or in any other MongoDB project, please report it according to the instructions found at Create a Vulnerability Report.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_mongodb_backend-6.0.1.tar.gz.
File metadata
- Download URL: django_mongodb_backend-6.0.1.tar.gz
- Upload date:
- Size: 211.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f08ccd2dfcbb49980077dd0795461c03dcef6561c2f0c7a7461af5e1ef6a8620
|
|
| MD5 |
3f74e244f2a4b387244d9723b1d52bfc
|
|
| BLAKE2b-256 |
c7e27fe022641ea135c3afbe4eb1fb39b7cb9b70fd3f45deac36df8fb3de6d91
|
Provenance
The following attestation bundles were made for django_mongodb_backend-6.0.1.tar.gz:
Publisher:
release-python.yml on mongodb/django-mongodb-backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_mongodb_backend-6.0.1.tar.gz -
Subject digest:
f08ccd2dfcbb49980077dd0795461c03dcef6561c2f0c7a7461af5e1ef6a8620 - Sigstore transparency entry: 845102755
- Sigstore integration time:
-
Permalink:
mongodb/django-mongodb-backend@971f1e44aa7cec1cd23d16cd46285394fcdc12b5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mongodb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@971f1e44aa7cec1cd23d16cd46285394fcdc12b5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file django_mongodb_backend-6.0.1-py3-none-any.whl.
File metadata
- Download URL: django_mongodb_backend-6.0.1-py3-none-any.whl
- Upload date:
- Size: 114.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e6115c037992b94e3720f89c710aadef89fcbead4e85d404cfb744e0185a5bc
|
|
| MD5 |
61555cb2ecf6a3b57c93f1a9ec711188
|
|
| BLAKE2b-256 |
229e27a86b3f69ca5442a36a65e041520ed58c84bd19a8cd32d576baa848d9d9
|
Provenance
The following attestation bundles were made for django_mongodb_backend-6.0.1-py3-none-any.whl:
Publisher:
release-python.yml on mongodb/django-mongodb-backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_mongodb_backend-6.0.1-py3-none-any.whl -
Subject digest:
4e6115c037992b94e3720f89c710aadef89fcbead4e85d404cfb744e0185a5bc - Sigstore transparency entry: 845102781
- Sigstore integration time:
-
Permalink:
mongodb/django-mongodb-backend@971f1e44aa7cec1cd23d16cd46285394fcdc12b5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mongodb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@971f1e44aa7cec1cd23d16cd46285394fcdc12b5 -
Trigger Event:
workflow_dispatch
-
Statement type: