Use Mongodb as a backend database for your django project, without changing a
single django model! This version supports Django 5.
Usage
-
Install djongo::
pip install djongo5
-
Into settings.py file of your project, add::
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'your-db-name',
}
}
-
Run (ONLY the first time to create collections in mongoDB)::
manage.py makemigrations
manage.py migrate
YOUR ARE SET! HAVE FUN!
Requirements
- Djongo requires python 3.6 or above.
How it works
Djongo is a SQL to mongodb query transpiler. It translates a SQL query string
into a mongoDB query document. As a result, all Django features, models etc
work as is.
Django contrib modules::
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.sessions',
and others... fully supported.
Important links
Full Documentation <https://www.djongomapper.com/>
_Source code <https://github.com/doableware/djongo>
_