This PR adds a management command (create_dev_dataset) that quickly populates your database with fake data (using the faker library, Python's built-in random library and a few lists of plausible names for events, gifts etc., saved under fixtures.py). The intent is that developers working on this project can easily restore a sizeable dataset after a database flush. It should also help them find styling bugs or performance issues when we start developing a frontend, as some issues might only become visible when the application has some actual data to load.
I can take absolutely no credit for the progress bars in the console. These are shamelessly stolen from one of the PortalDev projects. (Ty made them.)
Resolves #13
This PR adds a management command (
create_dev_dataset
) that quickly populates your database with fake data (using thefaker
library, Python's built-inrandom
library and a few lists of plausible names for events, gifts etc., saved underfixtures.py
). The intent is that developers working on this project can easily restore a sizeable dataset after a database flush. It should also help them find styling bugs or performance issues when we start developing a frontend, as some issues might only become visible when the application has some actual data to load.I can take absolutely no credit for the progress bars in the console. These are shamelessly stolen from one of the PortalDev projects. (Ty made them.)