Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

I'm stuck with an issue on how to properly set up subdomains in my Flask project. Here's a simple example of the code I'm working with: from flask import Flask app = Flask(__name__) app.config['...
Oleksandr Shyndin's user avatar
1 vote
1 answer
91 views

I am working with a Flask project with React as front-end. I just completed the authentication work. When i tried to access the user_id which i stored in session as 'user_data' from another route via ...
Ananthu N's user avatar
1 vote
2 answers
70 views

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 ...
Leszek Pachura's user avatar
0 votes
1 answer
85 views

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]: ...
picibucor's user avatar
  • 783
0 votes
1 answer
64 views

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 (...
Luís Felipe Araujo de Oliveira's user avatar
0 votes
0 answers
73 views

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 ...
JRutter's user avatar
  • 51
0 votes
0 answers
46 views

i try publish my site but i cant. yes we can see "It works! Python v3.9.21" message but its only i can see this. i think my wrong "application root" value. my file manager ...
imsiyat's user avatar
  • 23
0 votes
1 answer
25 views

Question How can I make a static lookup work if the url contains additional variables? Example When I use a blueprint (id) with a dynamic url_prefix (<int:id>): # /a/__init__.py : a_bp = ...
kando's user avatar
  • 615
1 vote
0 answers
35 views

I am currently packaging an old python/flask/pandas application (MyApp) into a podman container. When MyApp runs directly in Ubuntu Console, text messages (e.g. user defined warnings and errors from ...
BorisBanana's user avatar
0 votes
1 answer
124 views

I'm trying to simply log my queries and their parameters using the pymysql.cursor.mogrify() function as detailed in the documentation. python-1 | INFO:__main__:Creating records. python-1 | INFO:trex....
FilBot3's user avatar
  • 3,766
2 votes
1 answer
51 views

I'm working on a todo app for a class project and the /add_todo route returns a 415 error code whenever I try to add a todo. @app.route("/add-todo", methods=["GET", "POST"...
m00nsh1n3's user avatar
1 vote
0 answers
48 views

I had a Flask application, but I switched to FastAPI and noticed that only Bootstrap styles work. And the CSS styles, even the checkbox style="", are not applied. But the old CSS styles ...
Aster's user avatar
  • 29
0 votes
1 answer
35 views

The following Dockerfile is part of an example of a simple Flask deployment published on Docker offical Github:Docker Github FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder WORKDIR /app ...
Danny's user avatar
  • 29
0 votes
1 answer
170 views

The method doesn't return errors responce and I'd like to remove default error responce from flask.views import MethodView from flask_smorest import Blueprint from schemas.items import ItemsSchema ...
akpp's user avatar
  • 848
0 votes
0 answers
50 views

I have 2 apps made in Flask, an API which gets and sends data from an sqlite database. And a Flask web app with a jinja template in a template folder. i want to run both the api and web app on an ...
Mohamed Chmorra's user avatar
0 votes
0 answers
46 views

i have multiple services in flask which is at same port 5000, but host name is different so run the multiple end points i used docker and when i created images on docker it is showing an error as ...
KENIL DINESHBHAI GOYANI's user avatar
0 votes
0 answers
14 views

I am trying to access app running inside the docker container but it always displays this site cant be reached. the same settings for the flask app and the docker container in a linux host works just ...
y2k95's user avatar
  • 7
0 votes
0 answers
58 views

We are being required to move all css and javascript to external files. The css works fine. The javascript files only works in a particular way which is not approved. The following line works: '''...
Bob's user avatar
  • 117
0 votes
0 answers
19 views

@app.errorhandler(404) async def page_not_found(e): return render_template("404.html"), 404 The handler is executed 3 times even if render_template throws an exception and returns 500 ...
박윤성's user avatar
1 vote
0 answers
29 views

This is my flask route in which i have used falsk-caching @app.route('/get_subject',methods=['GET']) @jwt_required() @cache.cached(timeout=20) def get_subject(): current_user = get_jwt_identity() ...
Kishan Bisht's user avatar
0 votes
0 answers
20 views

I have got an app which authenticate using Azure AD. If I browse to / or /page then it prompts to login, how do I protect other pages/blueprints i.e. profile page? app.py import os import requests ...
bickyz's user avatar
  • 43
2 votes
1 answer
76 views

I'm building my project from this template. When I deploy, I'm encountering persistent 404 NOT_FOUND errors for all Flask endpoints (e.g., /api/news-galore, /api/raw, /api/) and the root page (/) of ...
Parth Gupta's user avatar
1 vote
0 answers
38 views

I'm using Flask to run a local web server and using Selenium with Chrome in headless mode to automate a task via Python. However, when I run the Selenium script in headless mode, it times out when ...
Henry Chiles's user avatar
1 vote
1 answer
62 views

I have been struggling with this for nearly a week. I am learning Flask, building an application for collectors. Collectors can view the database, but can add/edit only after login. The app requires ...
DeyanD's user avatar
  • 13
0 votes
0 answers
45 views

Good Morning, I'm trying to set up a local flask app running for testing some python code, i used to do it the same way a lot (with the same python script) without any issues, but now i'm getting ...
Ghost's user avatar
  • 1,594