Skip to content

Initializing Database Using Fixtures

Patrick Creighton edited this page Jan 11, 2021 · 1 revision
  1. In the team application, modify loadfixtures.py according to what you want
  2. Run loadfixtures.py to write to fixtures/fixtures.json
  3. Clear current data base of all Model instances by running python manage.py clearobjs
  4. Load new objects by running python manage.py loaddata fixtures.json
Clone this wiki locally