Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [flask]

Flask is a lightweight framework for developing web applications using Python.

0 votes
0 answers
8 views

When parsing data inside POST request body, what is the difference between using 'request.form' and 'request.get_json()'?

Situation description: @app.route('/auth/audio/save', methods=['POST']) def save_audio(): # files = request.files resp_dict = {'message': "success"} file = request.files.get(&...
stevezkw's user avatar
  • 2,372
0 votes
0 answers
15 views

Flask-MySQL Python long request

I'm using Flask to create an API. I need to make a query to the database and for this I used the flask_mysqldb library The fact is that before that I used another library (mysql.connector) and my ...
Степан Захаров's user avatar
0 votes
0 answers
9 views

SQLAlchemy-Utils Aggregated Attributes: How to apply filter before aggregating to create an aggregated field?

from sqlalchemy_utils import aggregated class Thread(Base): __tablename__ = 'thread' id = sa.Column(sa.Integer, primary_key=True) name = sa.Column(sa.Unicode(255)) @aggregated('...
Howard S's user avatar
  • 141
0 votes
0 answers
9 views

See docker name of services in petitions inside the same docker network

so I have multiple services runing in the same docker network with flask they are set like this: version: '3' services: login: build: context: ./repo_login dockerfile: Development....
Miguel Robledo's user avatar
-2 votes
0 answers
25 views

Why the python and HTML is not connecting? [closed]

I tried to connect HTML and python file, but i got error 405 HTML: <!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8" /> <meta name="...
user547259's user avatar
-1 votes
0 answers
12 views

Flask ridge regression model prediction

When I run the application.py it will run and when i give the predicted data points to the model then submit model.then error will be showing like this Internal Server Error The server encountered an ...
Yashwanth Singh's user avatar
-1 votes
0 answers
8 views

Prediction page not showing after giving input in pythonanywhere

I used pythonanywhere to implement the flask project. I was able to implement it on localhost but couldnt do it in pythonanywhere. Only input page is showing and after submission it is taking long ...
user26513044's user avatar
0 votes
0 answers
12 views

Loading HDF5 model with load_model function is not working

I have a machine translation model and I am trying to deploy it using flask, but it keeps printing these errors, I search up what could cause them I found that may be be from the difference of ...
Batoul Kassem's user avatar
0 votes
0 answers
17 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-...
rikitikitik's user avatar
  • 2,452
1 vote
0 answers
15 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 ...
Maverick's user avatar
-2 votes
0 answers
16 views

Cannot import name 'Markup' from 'Flask'

This ques is not a duplicate because the other solutions arent working for me. My main.py file: from flask import Flask, render_template, flash, redirect, url_for, abort from flask_login import ...
Maria Kazi's user avatar
0 votes
1 answer
23 views

How to Diagnose and Fix python .\app.py not working [closed]

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 ...
Khadeeja Abdul Ghaffar's user avatar
0 votes
0 answers
44 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 ...
Paul's user avatar
  • 1
0 votes
0 answers
25 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=&...
Salem's user avatar
  • 11
0 votes
1 answer
35 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 ...
Yash Khasgiwala's user avatar

15 30 50 per page
1
2 3 4 5
3719