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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With