1$ pip install djongo
2
3#In the settings.py
4DATABASES = {
5 'default': {
6 'ENGINE': 'djongo',
7 'NAME': 'your-db-name',
8 'ENFORCE_SCHEMA': False,
9 'CLIENT': {
10 'host': 'mongodb+srv://<username>:<password>@<atlas cluster>/<myFirstDatabase>?retryWrites=true&w=majority'
11 }
12 }
13}
14#then create the collections:
15$ python manage.py makemigrations <app-name>
16$ python manage.py migrate