CentreForDigitalHumanities / lettercraft

Lettercraft & Epistolary Performance in Medieval Europe
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Feature/dev data generation #29

Closed XanderVertegaal closed 7 months ago

XanderVertegaal commented 7 months ago

Resolves #13

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.)