DEV Community

Clinton N. Dreisbach
Clinton N. Dreisbach

Posted on

How to get your local Django DB on Heroku

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 (0)