loaddata restores Django fixture data to a database. Give it a fixture filename or an application name, and it deserializes the stored JSON into database objects. section 4.9
A practical fixture workflow looks like this:
- Run migrations on a fresh database, then use loaddata with the filename or app name to restore the objects. section 4.9
- Treat fixture files as machine-readable data: editor-added byte-order marks or changed newline characters can make them unloadable. section 4.9
