Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku. Django dumpdata

Tags:

django

heroku

How can I get the data on Heroku and create a fixture I can load locally? heroku run python manage.py dumpdata --natural > data.json is the command, but how can I download the file?

like image 892
Alejandro Veintimilla Avatar asked Sep 12 '16 19:09

Alejandro Veintimilla


1 Answers

Try adding to dashes to indicate the end of the command:

heroku run python manage.py dumpdata --natural -- > data.json

This should redirect the output to a local file.

like image 141
Daniel Hepper Avatar answered Oct 03 '22 20:10

Daniel Hepper