Questions tagged [flask-sqlalchemy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
442 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, ...
1
vote
1answer
592 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 ...
0
votes
0answers
8 views

Does __tablename__ create a new table for each object? And what is .query.all? Is it a method?

I am really confused In CS50'S Web Programming with Python and Javascript-ORMs and APIs. There is weird syntax like class.query.all. What is Its definition (a method, a function, etc).
0
votes
0answers
61 views

CS50 Web Flask-Login Issue: User Authentication Issue

I have a login page that uses a custom FlaskForm (using WTForms). If a user enters the correct credentials, a PostgreSQL database is successfully queried (using flask-sqlalchemy) to see if a user with ...
0
votes
0answers
1k 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 ...
0
votes
1answer
96 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 ...
0
votes
1answer
544 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["...
0
votes
1answer
704 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+...
0
votes
1answer
3k 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 ...
0
votes
1answer
657 views

AttributeError: __enter__

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

Can't Connect Python Flask With PSQL Database

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