Use Mongodb as a backend database for your django project, without changing a single django model!
Usage
Install djongo:
pip install djongo
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
Metadata
Release files for djongo 1.2.36
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djongo-1.2.36.tar.gz | 329.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djongo-1.2.36-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 679.3 kB
Release files / djongo-1.2.36.tar.gz
| Download URL | djongo-1.2.36.tar.gz |
|---|---|
| Size | 329.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43dc6866101fd5b197d221744984d43141454665dca5a9d5737bc9de19e70fe4
|
|
BLAKE2b-256 checksum How to use checksums |
d9a6230864a9b1f708cabd6a03e30f19b6df7e219da469df40b9f36af7c15212
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.18.0 CPython/3.6.0
|
Release files / djongo-1.2.36-py3-none-any.whl
| Download URL | djongo-1.2.36-py3-none-any.whl |
|---|---|
| Size | 350.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abec839b4baa54a75c2f6bd6a4ff4f585f92ec421fc2745b31815181a7d27307
|
|
BLAKE2b-256 checksum How to use checksums |
b5f69582258bd652198e333e9c51e086d2aac501ecb003f034cb490239f9e7d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.18.0 CPython/3.6.0
|