Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

This version
History Node

1.2.12

History Node

1.2.10

History Node

1.2.5

History Node

1.2.4

History Node

1.2.2

History Node

1.1

History Node

1.0

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
djongo-1.2.12.tar.gz
(13.9 kB) Copy SHA256 Hash SHA256
Source None Jan 8, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting