26👍
✅
You need the dumpdata
management command.
pip install pyyaml
python manage.py dumpdata --format=yaml > /path/to/dump_file.yaml
Source:stackexchange.com