Question

How do I make my Django app in Dokku use Postgres dump as database?

Hi, I’ve recently uploaded my Django app to a Dokku droplet, and I want to know how I can make it to work with a dump of a database I have.

I’ve tried restoring to Postgres my dump but it’s not working, but, even if I where to restore data from dump, I still don’t know how can I make my app to use that database.

Could you tell me (baby steps) how can I make my Django app work with a Postgres database in Dokku droplet?

Thanks a lot!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@Andrew SB <br> <br>It’s been a while, but I wanted to thank you for all your help and effort answering my question. <br> <br>Thanks

This answer over on StackExchange seems relevant: <br> <br>http://stackoverflow.com/a/22763027 <br> <br>

The dump was created from Heroku where original app exists (I want to migrate)