Posts

Showing posts from May, 2020

Deploying A django application to heroku

Image
Heroku is a great option for deploying your apps. It’s especially attractive if you want to use a relational database, because PostgreSQL is free on Heroku if you’re a hobby developer. On other cloud providers like Google Cloud or AWS, you have to pay for your databases. That said, it took me a little while to get my barebones Django application running on Heroku. It was especially difficult because Heroku’s docs aren’t comprehensive. I had to stitch this workflow together with help from Stack Overflow. Here’s what you need to do to go from zero to deployed on Heroku with a Django application from the command line. Are you an experienced dev just looking for some source code? I’m happy to oblige:  https://github.com/bennett39/django-heroku-example/tree/barebones Prereqs I’ll assume you’re starting with an empty directory and nothing built yet. I’ll also assume you’re on Linux. Mac people, you’ll have to do some translating of these commands, but the workflow is the sam