Management commands

Django MongoDB Backend includes some Django management commands.

Required configuration

To make these commands available, you must include "django_mongodb_backend" in the INSTALLED_APPS setting.

Available commands

showencryptedfieldsmap

Added in version 5.2.3.

showencryptedfieldsmap

This command shows the mapping of encrypted fields to attributes including data type, data keys and query types. Its output can be used to set the encrypted_fields_map argument in AutoEncryptionOpts.

--database DATABASE

Specifies the database to use. Defaults to default.

To show the encrypted fields map for a database named encrypted, run:

$ python manage.py showencryptedfieldsmap --database encrypted