Questions tagged [flask]
Flask is a lightweight framework for developing web applications using Python.
flask
55,772
questions
0
votes
0
answers
13
views
Static files not served correctly all the time in development environment
I have a Flask Python web app and I'm using Visual Studio 2022 Community edition for my development needs. I have set FLASK_ENV=development inside my .flaskenv file and I run the web app by right-...
1
vote
0
answers
14
views
Elastic Load Balancer Managing Requests Sequentially Instead of Concurrently - Configuration Issues?
I am deploying a Flask application using Gunicorn with Flask-SocketIO on AWS Elastic Beanstalk. I’m experiencing issues where my Elastic Load Balancer (ELB) seems to handle incoming requests ...
0
votes
1
answer
19
views
How to Diagnose and Fix python .\app.py not working
I activated my virtual environment in vs code. In the PowerShell where my environment was activated, I installed Flask successfully. Then I ran this code in my file main.py:
from flask import Flask
...
0
votes
0
answers
22
views
Returning redirect() and render_template() do nothing (Python Flask)
I am new to Flask so apologies if I am missing something obvious. I've created a basic RAG chatbot that can be asked questions about a specific project kit instruction document. I use a menu that the ...
0
votes
0
answers
16
views
Inline image in mail
I want to send an email with html code and an image
but in gmail it says that the image is attached, I don't want that, I only want the image in the body of the email.
html_content=f"<img src=&...
0
votes
1
answer
32
views
Unable to make a remote api call to flask app(for MySQL connection) inside my apache server
I have an apache server running on Alma Linux. I have the flask code setup to accept API calls from remote connections. So my API call hits the flask which then connects to MySQL database.
When I try ...
0
votes
1
answer
32
views
Mapper "NoReferencedTableError" exception when trying to implement many-to-many ORM data model with SQLAclhemy+Flask
I'm volunteering for a small local community's project while learning Python at the same time. It's first time with Flask and SQLAlchemy for me (MySQL is used to store the data). ORM I chose was ...
-1
votes
0
answers
26
views
Trying to connect a client OrangePi Zero to a remote my PC's remote server [closed]
I have a flask project which basically fetches state changes of 4 entries from a MySQL database in a MySQL server which runs locally and display them on the dashboard which also runs locally.
This ...
-2
votes
0
answers
15
views
how to send request from flask to another flask app with the same data
i have a Flask microservice with a port 4999 (api gateway)
and i have another Flask microservice with a port 5000
and i have a angular app
when i make a request from my angular app it send to 4999 ...
0
votes
0
answers
8
views
Flask-Login with 2 Tables
On my website, I need two tables for two types of users: Patients and Psychologists. Can I use Flask-Login for these two tables so I can manage logins for both Patients and Psychologists? Initially, I ...
0
votes
0
answers
20
views
CSS not applied to Flask webapp when I host it with Firebase Hosting
Description
I'm currently using Firebase Hosting to deploy my Flask web app and all of them are working well except when I click the link provided from Firebase, it only shows the HTML file without ...
0
votes
0
answers
8
views
Fix accidental database change with Alembic
My current database differs from what alembic expects, I think because the database was changed manually.
I thought I could just autogenerate a new revision that fixes the changes but get an error.
Is ...
0
votes
0
answers
27
views
Flask unable to connect to Redis & Celery with Docker-Compose
I am able to run celery shared tasks in the flask (called web) container's flask shell without issue (docker-compose exec web flask shell), however they time out when running in a route. Suspecting ...
-2
votes
0
answers
19
views
How to host a Flask website that uses a downloaded machine learning model package
I'm building a Flask web app as a project that hopefully serves some utility for someone I know who made the request. I'm still a student so he doesn't have high expectations, but I'd like to deliver ...
0
votes
0
answers
25
views
extracting data from a callback sent by a post request
when the balance of my service is updated, then to my server http://.../callback a post request comes with data from the screenshot and from this data I need to extract _id and socialnetworkId into a ...