REST APIs with Flask and Python - Adding PostgreSQL to Your Heroku App

REST APIs with Flask and Python - Adding PostgreSQL to Your Heroku App

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains how to switch from SQLite to Postgres using Heroku add-ons. It covers the installation and configuration of Heroku Postgres, setting up environment variables, and integrating Psycopg2 with SQLAlchemy. The tutorial also demonstrates deploying the application and testing database connections, emphasizing the importance of using environment variables for seamless database integration.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of the environment variable in the context of Heroku and Postgres?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What should you do if you want to run the app locally without the Heroku environment variable?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What library is required to interact with Postgres in Python applications?

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?