55,538 questions
0
votes
2
answers
24
views
make colorfull checkmarks using input comment
i would like to make web page looks like this :let us check following image
let us suppose that user enters positive comment, than we should have green check mark, otherwise red check mark :here ...
0
votes
1
answer
36
views
the console says an post method is being transmitted but the method isn't actually activating
This is my code
import os
from flask import Flask, render_template, redirect, url_for, request, jsonify
from flask_login import LoginManager, UserMixin, login_user, current_user
from flask_sqlalchemy ...
1
vote
2
answers
52
views
How to log/display app name, host and port upon startup
In my simple Flask app, I've created the following .flaskenv file:
FLASK_APP=simpleflask.app
FLASK_RUN_HOST=127.0.0.1
FLASK_RUN_PORT=60210
Now, I would like my app to log the following message upon ...
-1
votes
0
answers
40
views
websocket connection is getting lost with no response in the UI [closed]
Flask
@socketio.on('connect')
def handle_connect(arg):
logger.info("Client connected via WebSocket")
socketio.emit('engine_status_update', {"message": "Connected to ...
-1
votes
1
answer
33
views
How can I integrate a Flask-based Python machine learning model into a MERN stack weather prediction application?
I am working on a weather prediction application using MERN stack. For the weather prediction, I am using a machine learning model that I trained. I built a flask server that gets the input data from ...
2
votes
1
answer
57
views
Why is flask sqlalchemy giving me an error "no such table: users"
import os
from flask import Flask, render_template, redirect, url_for, request
from flask_login import LoginManager, UserMixin, login_user, current_user, logout_user
from flask_sqlalchemy import ...
-2
votes
0
answers
31
views
create a common wrapper around these two create agent apis [closed]
Send me a doc where you are showing two api calls (via curl or postman)-> one with provider Retell and one with provider Vapi and showing that in same api by changing the provider you are able to ...
0
votes
1
answer
32
views
Nixos - Flask - ModuleNotFoundError
I wanted to add a form to my flask-based website, but I got the following error message:
Apr 24 21:18:04 nixos uwsgi[2261]: from flask_wtf import FlaskForm
Apr 24 21:18:04 nixos uwsgi[2261]: ...
-1
votes
0
answers
26
views
Flask integration with Laravel for Object Detection [closed]
I'm trying to integrate Flask with Laravel for a Automatic Number Place Recognition System, the goal is to have Laravel as my main frontend and all object detections would be run on Flask, to create ...
0
votes
2
answers
39
views
Closing a session in Flask, SQLAlchemy to delete the temporary file
I know there are similar questions out there, but none answered my problem.
I am using a basic test setup in Flask using SQLAlchemy, that is a slightly modified version of the Flask-tutorial tests. My ...
0
votes
1
answer
27
views
WeasyPrint in Flask server not generating PDF with images
I have a Flask server running in localhost python 3.9 and conda, with a route for pdf creation with WeasyPrint's python driver, the pdf's are generated correctly but I just cant put any images on it (...
0
votes
0
answers
42
views
Python 3 Flask MySQL connection and handle error
I am build a system include server, mobile app and desktop app.
server.py
from flask import Flask, jsonify, request, g, send_file
from flask_cors import CORS
import mysql.connector
import data.data as ...
0
votes
0
answers
36
views
ormdata should be a multidict-type wrapper that supports the 'getlist' method [closed]
form_data = dict(request.form)
form = HomeworkForm(form_data)
if not form.validate():
return {"JOB":"Error", "errors": form.errors}, 400
homework = {
"...
0
votes
0
answers
22
views
Flasgger displaying Swagger page locally, but fails to load API definition on Azure
When I run this locally, the swagger page loads as normal, with all my endpoints and tests effectively. However, when I send it to Azure, I get the following page:
Failed to load API Definition.
When ...
0
votes
0
answers
60
views
Return latest updated cell
I'm fairly new to the Google sheet API.
I have been attempting to make a bot that takes IDs and processes them through an information system.
I have run into a few issues such as getting the last ...