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

All Questions

Tagged with
0 votes
0 answers
10 views

hosting a flask app in AWS lambda with API requests from teams bot

I am trying to host a teams bot on AWS, the message endpoint is set to the api gateway from the lambda function. The goal is for it to just send "message" back, however upon testing it gives ...
ryn's user avatar
  • 1
0 votes
0 answers
23 views

Is using a Pandas Dataframe as a read-only table scalable in a Flask App?

I'm developing a small website in Flask that relies on data from a CSV file to output data to a table on the frontend using JQuery. The user would select an ID from a drop-down on the front-end, then ...
GreenGodot's user avatar
  • 6,580
0 votes
0 answers
17 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
10 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
-2 votes
0 answers
31 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
14 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
0 votes
0 answers
18 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
-2 votes
0 answers
20 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
26 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
27 views

Inline image in mail [duplicate]

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
37 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
0 votes
1 answer
35 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 ...
tis's user avatar
  • 123
1 vote
0 answers
29 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 ...
Nicholas G's user avatar
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 ...
globus's user avatar
  • 1
0 votes
0 answers
13 views

Flask API Pytest Unit Tests Failing Due to Pyodbc

I’m having some issues with using Pytest. My Flask API uses pyodbc to talk to a MSSQL server db. The API runs in a Docker container and I'm running this on my Mac. I have a unit test for a healthcheck ...
danielschnoll's user avatar

15 30 50 per page
1
2 3 4 5
2818