[Answer]-Django and MongoDB without django-norel

1👍

You can use MongoEngine directly with Django; it does not use or require django-nonrel classes.

The MongoEngine documentation includes a full section on Django Support including Authentication, Custom User Models, Sessions, Storage, and Shortcuts.

Per the MongoEngine to Django connection instructions, you need to ignore the standard database settings (unless you also plan to use an ORM in your project), and instead call connect() somewhere in the settings module.

You also need to add a dummy database backend to your settings.py (if you are not using another database backend):

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.dummy'
    }
}

Leave a comment