Skip to main content

All Questions

Tagged with
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 ...
Sam's user avatar
  • 1
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 ...
NASIR ABBAS's user avatar
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. ...
Sachin De Silva's user avatar
-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 ...
Oloruntobi Grace Ayomide's user avatar
-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 ...
Lucky Domain's user avatar
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 ...
UVuuMe's user avatar
  • 148
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 ...
NeverFallingDown 94's user avatar
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. ...
Izzie Mirghani's user avatar
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 ...
Jurica Marusic's user avatar
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....
willie revillame's user avatar
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 = [ ...
TheMineCommander's user avatar
-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 = ...
QuestionsAndAnswers's user avatar
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. ...
Daniel's user avatar
  • 53
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 ...
Pythonic007's user avatar
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 ...
xblackcat's user avatar

15 30 50 per page
1
2 3 4 5
2803