Skip to main content

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

Project description

This is a Fork from Certego S.R.L.

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-certego-1.3.13.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djongo_certego-1.3.13-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

Details for the file djongo-certego-1.3.13.tar.gz.

File metadata

  • Download URL: djongo-certego-1.3.13.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for djongo-certego-1.3.13.tar.gz
Algorithm Hash digest
SHA256 7042d83146059933d7b638720a422120e88e72f5233a028f38c50dce490a3f51
MD5 36b968f09af6042a7b05ba3e999e6701
BLAKE2b-256 f2b7c2dce5518094489e9a5490aa0a898ed5c9a16a14b38932ccc5c6479fd276

See more details on using hashes here.

File details

Details for the file djongo_certego-1.3.13-py3-none-any.whl.

File metadata

File hashes

Hashes for djongo_certego-1.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 6b384475929ddb303c8eefeae2af6423fa3360d015ee546e40c30f928ee8f551
MD5 78798e475d41b2ddd5214a67790127e0
BLAKE2b-256 5e91c1ced0a77b824a8bceec4e00e86a6af948a4a6bf66edf044823d0e5e7dcb

See more details on using hashes here.

Supported by

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