Questions tagged [flask-sqlalchemy]
The flask-sqlalchemy tag has no usage guidance.
9 questions
0
votes
0
answers
3k
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
1
answer
294
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
1
answer
2k
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
1
answer
3k
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+...
1
vote
1
answer
474
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, ...
0
votes
1
answer
5k
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 ...
1
vote
1
answer
650
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
1
answer
859
views
AttributeError: __enter__
I defined a table in python using sqlalchemy but when i try to create it this error appears
0
votes
2
answers
424
views
Can't Connect Python Flask With PSQL Database
every time i try to make connection between python and PSQL this error disappear ?