DEV Community

Clinton N. Dreisbach
Clinton N. Dreisbach

Posted on

3

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 -"

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay