Heroku Postgres Connection | Django (3.0) Crash Course Tutorials (pt 24)

Dennis Ivy · 65K views · 2020 · 11:55

Open on YouTube

Web developmentCloud, DevOps & reliabilitytutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering or asking about deploying Django on Heroku with Postgres, as a step-by-step reference for the database setup.

Recommended by 1 people across 1 different months, 2021 to 2022.

What it is

A short tutorial from Dennis Ivy's Django 3.0 crash course that shows how to connect a Django app deployed on Heroku to a PostgreSQL database, using either Heroku's default Postgres or an AWS RDS instance. The presenter walks through the configuration on screen and has a live demo app.

What people said

Recommends sarangkkl · 2021-11 · Stack Overflow · on “Serving Static Files in Heroku”

One Thing you need to understand that Heroku does not provide support to serve your static files you need to use tools like s3 bucket to server static files one more issue i find that your database i have used aws rds free version postgres database by which you can solve your query here is the video which might help you what you are lacking [this video] good Luck

Cites Alex N · 2021-08 · Stack Overflow · on “Why am I getting an integer precision error when I run: heroku run python manage.py migrate”

@Chris yeah, I am running the lowercase version for sure. I am also following the exact steps in this tutorial and it worked fine for him: [this video] . Do you have a suggestion if you are good with django? I am really confused.

Cites Roy Melamed · 2022-06 · Stack Overflow · on “Django POST requests from Postman forbidden after HEROKU DEPLOYMENT”

I uploaded my Django REST Framwork project to Heroku after following the steps carefully. [this video] In my project, I used BEARER tokens with jwt. My database is PostgreSQL which is provided by Heroku. It worked perfect while working locally but after deployment, I couldn't send requests through Postman. Any ideas? 2022-06-04T16:36:50.456061+00:00 heroku[router]: at=info method=POST path="/api/login" host=roy-messenger.herokuapp.com request_id=******-****-****-****-********** fwd="**.***.***.**" dyno=web.1 connect=0ms service=46ms status=403 bytes=3660 protocol=https 2022-06-04T16:36:50.458497+00:00 app[web.1]: Forbidden (Referer checking failed - no Referer.): /api/login 2022-06-04T16:36:50.45