55,146 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
42
views
Custom FlaskWTF form errors not showing in template even with validate_on_submit()
I'm building a simple login form using FlaskWTF. The form renders correctly and submits, but the validation error messages (e.g., "This field is required", "Invalid email") never appear in the format ...
1
vote
2
answers
71
views
Why isn't this emitting the message?
@app.route('/3x3/online/<username>', methods = ['POST'])
def online3x3(username):
if username == session['username']:
socketio.emit('create', (session['username'], 1), namespace = '/...
0
votes
1
answer
51
views
ADK Google Gemini: "Session not found: default when" using InMemoryRunner with LlmAgent
I'm trying to use the Google ADK LLM agent (gemini-2.5-flash-lite) in a Flask project to check tests and review test content. I'm using InMemoryRunner and InMemorySessionService to run my agents.
Here'...
2
votes
2
answers
75
views
"TypeError: expected string or bytes-like object, got 'type'" error with SQLAlchemy query
(I'd tried to post this here, had someone post a version of it for me on r/flask, and am trying again here, so please excuse the duplication if the original one shows up.)
I'm trying to modify a Flask/...
1
vote
2
answers
65
views
How to pass database session through Flask context manager
I want to pass my database session through the Flask builtin context manager. Looking at the doc, it seems pretty straight forward.
Yet my sample fails on AttribueError: foo for HTTP and CLI calls:
...
Plup's user avatar
- 1,374
0
votes
1
answer
66
views
How to use WTForms (.py package) to present information from database and modify it? [closed]
Context: I am trying to build a web application to manage employee information cards. So you can click on an employee card and view information like name, age, department etc. and then also modify the ...
-1
votes
0
answers
21
views
Is it necessary to add Enctype in forms for uploading files in flask [duplicate]
Form:
<form action="/upload" method="post">
<input type="text" placeholder="Enter your name" name="name">
<input type="...
-2
votes
2
answers
104
views
Incorrect IP when running app via Docker Compose [closed]
I have a python/flask app that I do docker build then docker compose. I am persistently getting the app running on IP 0.0.0.0. Here is output of docker compose up:-
Skipping DB seed: missing POSTGRES ...
0
votes
1
answer
71
views
Dash Plotly Flask Application randomly hangs for 1 minute
I have build a simple application with two pages (a multi-page Dash app) which I am running locally using Gunicorn with two workers and four threads. It's a simple dashboard application.
When I ...
-3
votes
2
answers
74
views
Flask publish on different local ip than the machine it deployed on inside a docker
I am using docker with a flask app inside to display the visual results in a browser.
I have created the image with the flask inside, tested on my machine (an Ubuntu 24.04 machine) and it seems to ...
2
votes
1
answer
203
views
Displayed data disappears after successfully adding data to sqlite database
Please help me! I'm building a simple stock search app using Flask (backend) and plain HTML/JS (frontend).
When the user enters a ticker, the app:
Send a GET request to my Flask backend (/search)
...
Advice
0
votes
1
replies
49
views
Using flask_moment to display a date in the web user's local format
I am learning from Miguel Grinberg's excellent Flask Mega-Tutorial and writing an app which tracks the items in two freezers. Dates are saved in UTC in the database but I want to display them in the ...
2
votes
1
answer
79
views
How to pass variables to a template HTML with Flask
i'm currently learning Flask templates, but i can't undestand how to pass a variable to it. Example of my Python code:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
...
0
votes
1
answer
64
views
Appropriate method to pass arguments in Flask without using the url
I am using flask and a deep learning model in tensorflow to display some annotated video. The module works fine but the loading of the model is lazy due to the nature of the generator. Only after I ...
0
votes
0
answers
64
views
Is there any way to fix type errors when overriding make_response?
I don't want to inherit from Response I want to use a pydantic model. I am doing this:
class AppResponse(BaseModel):
somefield: str
otherfield: int
class FlaskApp(Flask):
# Tried doing ...