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

dj-mongo-backend-0.1.0.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

dj_mongo_backend-0.1.0-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file dj-mongo-backend-0.1.0.tar.gz.

File metadata

  • Download URL: dj-mongo-backend-0.1.0.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for dj-mongo-backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b12e3db00820fec57c00fca677a1eb045d241094bef474fd02d883fbbe9cfe80
MD5 adc82f5c22be1b316623ed07203c77cf
BLAKE2b-256 7be901d98abf831f40a24a5c442f27d3435581be70437a82a852cf9e82cfa43d

See more details on using hashes here.

File details

Details for the file dj_mongo_backend-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dj_mongo_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc5372f0a1fa5336356635db8f6a5ee5806a22302fb6e11af78ed614460c1461
MD5 66c2b466bc63c897569d3a68756a30a7
BLAKE2b-256 b7d98e08fc7b16bd040938177709f8f85d9cea7be86a2d74da7b09630ce37dcd

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