54,987 questions
Score of -3
0 answers
52 views
How to ping back to client with Python socket.io [closed]
I can successfully send a message to the server but according to the docs it is possible to ping this specific client back as you can do in other languages too, but I don't quite understand how to do ...
Score of 0
2 answers
118 views
CNN digit recognition model: high local accuracy but poor predictions after deployment (Flask API)
I trained a CNN on MNIST for digit recognition that gets ~98% accuracy during local testing (Jupyter/Colab). After deploying it behind a Flask API (React frontend sends canvas-drawn digit images), ...
Score of -2
0 answers
32 views
Flask form submission returns 405 Method Not Allowed even though the route exists [duplicate]
I am building a small Flask web application where a user submits a form to generate content. The page loads correctly, but whenever I click the submit button, Flask returns a 405 Method Not Allowed ...
Score of 2
0 answers
152 views
How to avoid cyclic dependency when using Flask as Viewer part of MVC setup?
I made a little multiplication table game with a multiplayer mode. For the future I have started to decouple the logic and the output, so I can easily (easier) add new math tasks like addition, ...
Score of 0
1 answer
76 views
Flask Ratelimit issue
I'm trying to rate limit an API request on my website. However, when I used flask Limiter, it just ignored it.
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
This ...
Score of 0
1 answer
110 views
Flask --app app run from_envvar gets the root_path appended to env var
I have a problem with Flasks app.config.from_envvar() function.
Everytime I set a variable like this
set MOVIEDB_SETTINGS='C:\tmp\settings.py'
Flask get the error:
OSError: [Errno 22] Unable to load ...
Score of 3
1 answer
94 views
How can i handle file too large exception inside a view with Flask?
I want to catch the RequestEntityTooLarge inside my view, but instead my custom error handler is called.
My "movie.py" has a route to create a new movie entry.
from flask import (
...
Best practices
1
vote
3
replies
108
views
About the Pythonic code on FastAPI and Flask back end
I've done some jobs with the FastAPI or Flask on the backend, but in both situations there was no type of layering of the responsabilities. Like everything was done into the controller layer right ...
Best practices
0
votes
1
replies
75
views
How much business logic should live in Shopify Metaobjects versus an external Flask backend?
I'm building a custom Shopify application with a Flask backend.
Currently I store business data in Shopify Metaobjects because it integrates nicely with themes and Admin UI.
As the application grows, ...
Score of 0
1 answer
138 views
Error sending HTML form data with JavaScript front end through Flask backend to MySQL database [closed]
I get the error "400 (BAD REQUEST)" in the browser (dev tools) console when trying to send HTML form data with JS frontend to MySQL database through a flask back end.
HTML form:
<form id=&...
Score of -3
1 answer
102 views
Error trying to upload MS Excel file from JS front end to Python Flask back end [closed]
I am trying to upload an MS Excel file from JS front end to a Python Flask back end with fetch-api. but I get the following error message below. I am not too familiar with other means of using AJAX or ...
Advice
0
votes
1
replies
53
views
How to integrate CNN model with Flutter app for plant disease detection - API vs TFLite?
I'm building a Flutter app for rice leaf disease detection using CNN as my thesis project.
I'm confused about the best architecture:
Option 1: Deploy CNN model as REST API (Python Flask/FastAPI), ...
Score of -5
1 answer
170 views
Cannot search anything [closed]
I was trying to program a function to search users from a table in the database but I've been trying to fix.
I tried following a tutorial with no success and I couldn't find anywhere a solution in ...
Tooling
0
votes
4
replies
163
views
Recommended languages/APIs/frameworks for an online turned based word game
It's a word chain game. One person starts with a word and the other person continues with a word that ends with the last letter of the previous word. It should have simple UI similar to Wordle by NYT. ...
Best practices
0
votes
2
replies
146
views
Flask: Dynamically update HTML view when Excel data changes (reload-based, no JS polling)
I am building a small Flask web application that reads process step data from an Excel file
and renders it into an HTML page using Jinja2 templates.
The Excel file is used as a configuration/...