Django 6 · Database and migrations

Export data as JSON

Write an app's data to a fixture file.

python manage.py dumpdata blog --indent 2 > blog.json

Official Django 6 documentation

More database and migrations commands

All database and migrations commands · Django 6 cheatsheet

Was this page helpful?