flask Questions
3
Solved
I'm new to Flask and I'm having trouble filtering out some logs. My use case is simple: I don't want to log health check queries, which hit the route /health.
Here's what I have:
from flask impor...
Lannylanolin asked 1/4, 2020 at 0:41
5
Solved
I'm new to programming and recently a friend of mine gave me a project to work on in order to get myself familiar with the programming environment and language (python in this particular example).
...
3
The error
This specific error : ImportError: cannot import name 'Markup' from 'flask'
expected the flask app to start running.
I have tried the following :
1.
from markupsafe import Markup
Re-i...
2
Solved
I'm developing a web application based on MySQL DBMS
I followed the tutorial in that answer in which it creates all the tables related to every model calling the create_all().
The only one thing ...
Hairdo asked 12/12, 2015 at 14:10
6
Solved
I want my flask server to detect changes in code and reload automatically.
I'm running this on docker container.
Whenever I change something, I have to build and up again the container. I have no i...
7
Solved
In Flask, when I have several routes for the same function,
how can I know which route is used at the moment?
For example:
@app.route("/antitop/")
@app.route("/top/")
@requires_...
16
Solved
I'm new to Flask. To launch the flask app, I did python -m flask run but I repeatedly get the error:
Failed to find Flask application or factory in module "app". Use "FLASK_APP=app:...
3
I am trying to get my gunicorn setup. Following is my config file for the systemmd config file:
# Unit section is used to specify metadata and dependencies
[Unit]
Description=DEMO
# only start onc...
7
Solved
I am building a webapp using Flask. I imported the flask-login library to handle user login. But it shows an ImportError.
Below is my folder structure:
>flask_blog1
>flaskblog
>static
&...
Adah asked 2/10, 2023 at 11:7
19
Solved
From yesterday I read a lot of topics about the famous error:
"No such command init-db"
So, I followed the tutorial here: https://flask.palletsprojects.com/en/1.1.x/tutorial/database/
(...
2
I have been trying to get logging to work on AWS Cloudwatch but have been unsuccessful so far. I am running a python flask backend on Fargate and handling logging through Cloudwatch. Only error mes...
Verity asked 3/11, 2020 at 15:9
7
Solved
I've defined a table named users_table and ran db.create_all() to create the table, but get the error no such table user_table on commit for updating user info.
How I test :
(under /project) python...
Schleicher asked 6/7, 2017 at 6:55
3
I have an app that was written with Flask+SQLALchemy+Celery, RabbitMQ as a broker, database is PostgreSQL (PostgreSQL 10.11 (Ubuntu 10.11-1.pgdg16.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubu...
Mcfall asked 10/1, 2021 at 19:49
7
I have a website running with NGINX + uWSGI + Flask.
The website runs fine most of the time, however every now and then it gets into a state where the pages returned by nginx just show "Internal S...
3
I am new to flask and python. I want to implement a Dependency injection container and access the dependencies inside different modules. My first try looks something like:
class AppModule(Module):...
4
Solved
I want to set all of my http headers responses to something like this:
response.headers["X-Frame-Options"] = "SAMEORIGIN"
I checked this question, but it only changes the header for one specific...
Spandex asked 8/6, 2015 at 19:8
3
Solved
In my flutter app I am using the flask server for testing purpose. I started my server and run the API url in my flutter app. But SocketException: Connection refused (OS Error: Connection refused, ...
13
I am kind of new to Python, but I have had the same issue working with Node apps. I am making a pretty standard jQuery AJAX request to my local Python sever:
init: function(callback) {
var token ...
Jp asked 11/2, 2015 at 17:50
7
Solved
I want to get the size of uploading image to control if it is greater than max file upload limit. I tried this one:
@app.route("/new/photo",methods=["POST"])
def newPhoto():
form_photo = request...
3
Solved
I've created an API using flask, where the authentication is all working fine using flask_jwt_extended.
However if I add a resource that has a jwt_required decorator I get this error.
File "/Li...
Agace asked 5/7, 2017 at 12:19
2
Solved
Recently I have been trying to create a personal website using a Flask app with Github pages. Once creating a repository titled .github.io and placing an a file titled index.html it will appear liv...
Pyrargyrite asked 22/5, 2014 at 12:38
1
I have two Flask apps running with a domain dispatcher (based on this guide).
I'd like to share my models between the apps. Is it safe to have the SQLAlchemy object in a shared location and just ca...
Elect asked 7/6, 2020 at 2:39
10
Solved
the exact error I get is :
flask.cli.NoAppException: While importing "application", an ImportError was raised:Traceback (most recent call last):
File "/home/harshit/.local/lib/python3.6/site-packa...
Aeriela asked 10/3, 2020 at 18:51
18
Getting exception when running the following code for form validation.
File "/Users/homeduvvuri/Documents/Learning/PartyGoUdemy/PartGo/user/forms.py", line 11, in BaseUserForm
email = EmailField...
4
i have an isssue with flask-login the user loader is not working
Exception: Missing user_loader or request_loader. Refer to http://flask-login.readthedocs.io/#how-it-works for more info.
and
...
Giroux asked 1/5, 2020 at 11:42
© 2022 - 2025 — McMap. All rights reserved.