Skip to content

Downloading Data

Craig Anderson edited this page Apr 17, 2019 · 3 revisions

To download data from the app, run the following command locally:

heroku run --app will-of-the-prophets -- python manage.py dumpdata will_of_the_prophets > /path/to/will_of_the_prophets/will_of_the_prophets/fixtures/live.json

This will run dumpdata on the production system to get the data stored in all the models in the will_of_the_prophets app and store the output locally in /path/to/will_of_the_prophets/will_of_the_prophets/fixtures/live.json. There may be extra noise in that JSON file, so be sure to eyeball it before making use of it.

Of course, you'll need to a member of the uxbridge-shimoda Heroku team.

To load this data:

pipenv run python manage.py loaddata live
Clone this wiki locally