Use
python manage.py dumpdata to export the database to JSON or other formats. If you save the output to a file, it can be used as a fixture for tests or as initial data for new projects.Example 👇
# Export the entire database to a JSON file
python manage.py dumpdata > data.json
# Export data of a specific app
python manage.py dumpdata myapp.Book > books.json👉 @DataScience4
