Objective
To implement support for seeding the database.
Context
Some of us have gotten the UIPA portal running, however it looks a little weird with zero data. For the purposes of development, it is quite helpful to have an initial seeding of data present to allow for all the normal operations of the portal locally.
This capability was present in the previous iteration of the UIPA portal in the reset.sh script.
Tasks
Success Criteria
The ability to seed the database is available, for both public bodies and requests.
Related Items
Parent Epic: #50
Open Questions:
- Do we need to update our list of Hawaii's public bodies? How can we get a more recent list now, and how often do we need to update this list?
Objective
To implement support for seeding the database.
Context
Some of us have gotten the UIPA portal running, however it looks a little weird with zero data. For the purposes of development, it is quite helpful to have an initial seeding of data present to allow for all the normal operations of the portal locally.
This capability was present in the previous iteration of the UIPA portal in the
reset.shscript.Tasks
Success Criteria
The ability to seed the database is available, for both public bodies and requests.
Related Items
Parent Epic: #50
loaddatacommand: https://docs.djangoproject.com/en/5.0/ref/django-admin/#loaddataimport_csvcommand runs: https://github.com/CodeWithAloha/uipa/blob/main/froide/publicbody/csv_import.pyOpen Questions: