All Questions
42,043 questions
0
votes
3
answers
36
views
whenever i hit post request on my page then I cannot display the updated value from database even though I fetched the data from updated db
This is my code and inorder to fetch the correct result i have to either refresh or render the user.html again to reflect the changes.
is there any way to do it more efficiently
I tried rendering the ...
0
votes
0
answers
24
views
How to simulate P2P nodes and a double-spending attack in a Flask-based blockchain? [closed]
I'm working on a simple blockchain simulation using Python and Flask, mainly to understand how double-spending attacks and fork resolution work. Each node is a separate Flask app instance running on a ...
0
votes
0
answers
41
views
Mysterious Memory hike in Flask Admin
we observed a significant memory spike (~235MB) when editing and saving an article model using flask admin, even though the on_model_change() and after_model_change() methods perform minimal logic.
...
-3
votes
1
answer
30
views
Flask Application Deployed on GoDaddy Shared Hosting - Showing Blank Page on First Visit, But Works After Refresh [closed]
I have a Flask-based application that I deployed on GoDaddy shared Hosting. When I first visit the website, it shows a blank page. However, after refreshing the page (without doing anything else), it ...
-5
votes
1
answer
57
views
How backend work with front end using flask [closed]
I'm currently on Day 7 of learning Python Flask, and I'm confused about how the frontend connects to the backend.
I have HTML files like register.html and login.html, and I’ve created Flask routes for ...
0
votes
0
answers
37
views
Cannot connect to Mongo Atlas from Flask App inside Docker with Nginx [closed]
I am failing to get my App to connect the Atlas DB from behind nginx inside Docker.
Here is my docker-compose.yml after trying to set up haproxy and failing to get through. Everything works when no ...
0
votes
0
answers
70
views
Font Awesome isn’t displaying the icon
I'm working on a simple Flask app that renders an HTML page with Font Awesome icons. I've included the Font Awesome CDN in the , and while the background styles and layout appear correctly, the icons ...
0
votes
0
answers
36
views
Flask app with flask-ngrok stuck in Colab (no public URL, cell runs indefinitely, 127.0.0.1 access denied)
I'm trying to run a simple Flask chatbot app in Google Colab, using flask-ngrok to expose it publicly. I began developing locally but I ran into some Tensorflow import issues and moved to Colab. ...
0
votes
0
answers
42
views
Onshape API OAuth2 "invalid_grant" Error with ngrok Redirect URI
I'm trying to integrate the Onshape API using OAuth2 authorization code flow but get a "invalid_grant", "Invalid authorization code" error when requesting an access token. I use a ...
1
vote
1
answer
59
views
how to unit test flask method using google cloud storage library
Im trying to create unit tests for this method but im getting the error saying credentials not found
from io import BytesIO
from google.auth.exceptions import DefaultCredentialsError
from google....
0
votes
1
answer
29
views
Google Cloud Run keeps giving from metadata despite the metadata being present [Python/Flask]
I have a pyproject.toml file that looks like this:
[build]
builder = "gcr.io/buildpacks/builder:google-22"
[project]
name = "schoolProject"
version = "0.0.1"
authors = [
...
-1
votes
0
answers
41
views
How to make tuple type SQL results to be ready to display in Flask?
A typical query such as this:
conn=sql.connect('./database.db')
cursor=conn.cursor()
cursor.execute('SELECT year, unit, facilities, workforce, vehicles FROM units WHERE unit = ?', (unit,))
unit = ...
1
vote
1
answer
19
views
Periodic beeping in live audio stream using Flask-SocketIO and sounddevice — concurrency issue?
Periodic beeping in live audio stream using Flask-SocketIO and sounddevice — concurrency or deployment issue?
Question
I'm building a live audio streaming feature with Flask-SocketIO and sounddevice. ...
2
votes
1
answer
68
views
How to Verify WordPress 6.8 hash using Flask
I'm looking for guidance on implementing user authentication in a Flask application that integrates with WordPress 6.8, specifically focusing on how to handle the new password hashing methods used by ...
0
votes
0
answers
21
views
what should i use instead of @app.before_first_request [duplicate]
I want to connect to the database in Flask before the first request the user makes.
But the latest version of Flask that I use has removed @app.before_first_request
And I want to know what to use ...