DEV Community


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:

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

Discussion (0)

Editor guide