Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migration for stand-alone usage. #323

Closed
wants to merge 1 commit into from
Closed

Conversation

higs4281
Copy link
Member

@higs4281 higs4281 commented Aug 1, 2018

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.

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

Coverage Status

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

@anselmbradford
Copy link
Member

How do I test? ./standalone_setup.sh?

@anselmbradford
Copy link
Member

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

@higs4281
Copy link
Member Author

higs4281 commented Aug 1, 2018

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
Copy link
Member Author

higs4281 commented Aug 1, 2018

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

@higs4281 higs4281 closed this Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants