A fresh database may be bootstrapped by running manage.py syncdb --migrate
.
Initial schools must be populated, which can be done by running:
manage.py fetch_usde_csv ./school.csv
manage.py import_usde_csv ./school.csv
manage.py sanitize_usde_schools
For testing purposes, it might be desirable to populate a database with additional data. In this case, see the next section.
A preliminary set of Notes, Courses, and Schools is available as json from the this repository
To import this db:
./manage.py import_json all
Alternatively, you can remove all current Notes, Courses, and Schools from the database before importing with the following management command:
./manage.py import_json all clean