datamade / openness-project-nmid

Money Trail NM - New Mexico In Depth's Campaign Finance Explorer
https://moneytrailnm.com
3 stars 1 forks source link

Containerize application, remove unused edit_data and make_races management commands #175

Closed hancush closed 10 months ago

hancush commented 10 months ago

Description

This PR containerizes the application, to aid local development and in anticipation of migrating to Heroku from AWS.

Testing instructions

hancush commented 10 months ago

Thanks, @derekeder. Fixed! To re-run the import, remove your generated data files, flush the data, then re-import:

rm data/*.csv data/*.xlsx
git checkout HEAD data
docker-compose run --rm app python manage.py flush_camp_fin
docker-compose run --rm app python manage.py import_data

Then check the pages that were erroring previously and confirm they work.