Skip to main content

Driver for allowing Django to use MongoDB as the database backend.

Project description

Use Mongodb as a backend database for your django project, without changing a single django model!

Usage

  1. Install djongo:

    pip install djongo
  2. Into settings.py file of your project, add:

    DATABASES = {
         'default': {
             'ENGINE': 'djongo',
             'NAME': 'your-db-name',
         }
     }
  3. Run (ONLY the first time to create collections in mongoDB):

    manage.py makemigrations
    manage.py migrate

YOUR ARE SET! HAVE FUN!

Requirements

  1. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djongo-bn-1.3.6.1.tar.gz (346.3 kB view details)

Uploaded Source

Built Distribution

djongo_bn-1.3.6.1-py3-none-any.whl (355.0 kB view details)

Uploaded Python 3

File details

Details for the file djongo-bn-1.3.6.1.tar.gz.

File metadata

  • Download URL: djongo-bn-1.3.6.1.tar.gz
  • Upload date:
  • Size: 346.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for djongo-bn-1.3.6.1.tar.gz
Algorithm Hash digest
SHA256 a8bd28c8b315f4cbee388d11f1dcbd140ddb622f987b3989f92d002efe02769e
MD5 5802bb1d3884340bf466bbb9554a8ada
BLAKE2b-256 565827bf6090ed5693b31f1bfd9b4b027c2546533d1422f3fe26c30159dab391

See more details on using hashes here.

File details

Details for the file djongo_bn-1.3.6.1-py3-none-any.whl.

File metadata

  • Download URL: djongo_bn-1.3.6.1-py3-none-any.whl
  • Upload date:
  • Size: 355.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for djongo_bn-1.3.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8374aed4335a4dbf02bcf4e64ee002900087b4e2ff5b94422d3bc54f722867
MD5 1fb87ca59ac97f103911591e72e30c26
BLAKE2b-256 f3576f7ec10521336f52e979285272d8c4006502ae99611b72a91f7c2ac1a7e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page