Skip to content

khikmatullaev/djongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djongo

Driver for allowing Django to use NoSQL/MongoDB databases

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

Usage:

  1. pip install djongo
  2. Into settings.py file of your project, add:
    DATABASES = {
        'default': {
            'ENGINE': 'djongo',
            'NAME': 'your-db-name',
        }
    }
    
  3. Run manage.py migrate (ONLY the first time to create collections in mongoDB)
  4. YOUR ARE SET! HAVE FUN!

Requirements:

  1. djongo requires python 3.5 or above.

How it works:

djongo is a SQL to mongodb query compiler. 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.

Features:

  • Stop the immigrations.
  • Embedded model.
  • Embedded Array.
  • Embedded Form Fields.

Read the full documentation

Questions

Any questions, suggestions for improvements or issues regarding the usage. Please raise a git-hub issue ticket.

About

Django and MongoDB database connector

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.4%
  • JavaScript 1.3%
  • HTML 1.3%