55,129 questions
-2
votes
0
answers
69
views
Python text messaging bot using Flask, Twilio, Ngrok sending double text messages [closed]
If I use this Python code to send "text" only in a text message, everything works correctly. The Python Bot.py can send text messages from my computer using Ngrok. The Python Bot.py can also ...
Best practices
2
votes
0
replies
15
views
What are the security and feature checkpoints for considering an authentication system “complete” in a web application?
I’m building a web application and started with authentication, but I keep feeling it’s incomplete. In a professional production environment, what are the essential steps or criteria to ensure the ...
Advice
0
votes
0
replies
19
views
hosing Python / Flask apis in RHEL with heavy IO bound tasks
below is my application design. as ou can see my back end flask/ python apis are hositng websocket APIs for some of the front end actions. the intention is to have quick communication from front end ...
-2
votes
0
answers
41
views
Images are not displaying on the Flask website [duplicate]
The server.py file is in the /site directory, and index.html is in the /site/templates directory. The image I need, 123.jpg, is also in /site/templates. I tried specifying the path to it like this:
&...
2
votes
1
answer
55
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
81
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
77
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
84
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
69
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:
...
0
votes
1
answer
67
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 ...
-2
votes
2
answers
105
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
73
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
77
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
50
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 ...