Questions tagged [flask-sqlalchemy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2k views

NameError: name 'db' is not defined

I've made a simple code using python, where with the help of Flask_sqlalchemy I am trying to create 2 tables in a database which is being hosted by Heroku. The file db.py contains my table details ...
user avatar
  • 101
0 votes
1 answer
199 views

Unsure of what my DATABASE_URL is

I am using windows 10 (64-bit) and am following the course "Web Programming with python and Javascript" in CS50, in which i wanted to use my computer as a local host to store the table content. I am ...
user avatar
  • 101
0 votes
1 answer
1k views

error while trying to update database using python and sqlalchemy

While I was trying to run create.py file having the following code: import os from flask import Flask, render_template, request from models import * app = Flask(__name__) app.config["...
user avatar
0 votes
1 answer
2k views

MySQL - AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'

I'm trying to run the list.py on my windows, but I'm getting the following error Traceback (most recent call last): File "list.py", line 9, in engine = create_engine(os.getenv("mysql+...
user avatar
1 vote
1 answer
454 views

API Goodreads issue with the book page

I have been facing an issue with the API, it does not display in the book page in project1 I keep getting the error "Not Found" could someone help me? Check the screenshots of the python code below, ...
user avatar
0 votes
1 answer
4k views

Issue with psycopg2 dependency - pg_config executable not found on Mac OS

For Project 1: When running "pip3 install -r requirements.txt" for the initial setup, I get an issue with the psycopg2 dependency: Error: pg_config executable not found. pg_config is required to ...
user avatar
1 vote
1 answer
613 views

Having Issues Setting up Flask Server in Project 1

I am having trouble setting up my flask application in Project 1. Here is some additional screenshots of the error messages I get in browser when running flask. Here is some additional info: Running ...
user avatar
0 votes
1 answer
732 views

AttributeError: __enter__

I defined a table in python using sqlalchemy but when i try to create it this error appears
user avatar
0 votes
2 answers
372 views

Can't Connect Python Flask With PSQL Database

every time i try to make connection between python and PSQL this error disappear ?
user avatar