cfpb / college-costs

⚠️ Deprecated: see note. ⚠️ A tool to help students weigh the costs and rewards of a college program.
https://www.consumerfinance.gov/paying-for-college2/understanding-your-financial-aid-offer/about-this-tool/
50 stars 27 forks source link

Fix migration for stand-alone usage. #323

Closed higs4281 closed 6 years ago

higs4281 commented 6 years ago

This just allows local data migrations to sidestep an error that can crop up while setting up a standalone version. It shouldn't affect any other operations.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling b90e30a848bfe23afc46549c1a0512ad0943515e on fix-migration into 69c3f7e3c9ce0458a49ac8e06c19787ed68805b8 on update_deps.

anselmbradford commented 6 years ago

How do I test? ./standalone_setup.sh?

anselmbradford commented 6 years ago

Also, @mistergone is in here right now testing my PR, so might be easy for him to try.

higs4281 commented 6 years ago

You can test the migration by running migrate:

./manage.py migrate

If that succeeds, then loading data should work as well.

./manage.py loaddata collegedata

(loaddata takes a minute)

higs4281 commented 6 years ago

If you've recently worked on cfgov-refresh, you may need to unset DJANGO_SETTINGS_MODULE, which might get in your way.

unset DJANGO_SETTINGS_MODULE