loading...

How to get your local Django DB on Heroku

cndreisbach profile image Clinton N. Dreisbach ・1 min read

I was trying to push the data from a local Django app I was working on to Heroku without committing a DB dump to my Git repo, and kept running into problems. The command to make it work was so weird that I'm recording it for posterity:

./manage.py dumpdata | heroku run --no-tty "./manage.py loaddata --format=json -"

Discussion

pic
Editor guide