Most voted "flask" questions
Flask is an MVC microframework written in Python based on Werkzeug and Jinja 2 (and good intentions, according to the official website).
Learn more…176 questions
Sort by count of
-
0
votes0
answers24
viewsValidation Flask Wtforms
I am developing a web project and am having problems in the form validation part. Just follow my validations: # REGRAS DE VALIDAÇÃO # def validate_username(form, username): if…
-
0
votes0
answers15
viewsFlask download multiprocess video
I’m doing a project to download videos from a website and store them in a folder on the computer. Here’s the thing, I got a route @app.route('/baixar', methods=['POST']) who is responsible for…
-
0
votes0
answers19
viewsKeyerror: None Flask
Hello, I’d like your help, because I’m trying to understand why you don’t perform!? config.py import os import random, string class Config(object): CSRF_ENABLED = True SECRET =…
-
0
votes1
answer31
viewsBuild application made with Flask
While running flash run, I get the following error: Error: Detected Factory 'create_app' in module 'spcdados.app', but could not call it without Arguments. Use…
-
0
votes0
answers13
viewsHow to increment a variable in the middle of an sql query in Flask?
Hello, I’ve been trying for a while to receive and insert an image that needs to be BLOB type in Mariadb bank with Flask. However, when I try to insert the image into the bank with flask I get the…
-
0
votes1
answer52
viewsHow to install modules from a Python project with Flask?
I’m used to working with Javascript, and it’s common to download a Github project and run the command yarn to download all the modules that that project uses so that I can run the project. However,…
-
-1
votes2
answers286
viewsDebug with Flask/Python
I’m studying the Flask framework. I happen to need thresh an object request with form data. I also need to stop at a certain point, like the die() in PHP. How do I do that? I’ve tried os.exit(1),…
-
-1
votes1
answer395
viewsRoutes with flask
I am trying to separate the functions of its routes, creating only a file for the routes and a file for each function, but when I try to call this file from the function in routes it does not find…
-
-1
votes1
answer137
viewsError of migration, Flask
is appearing, "Nameerror: name 'app' is not defined" my codic from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_script import Manager from flask_migrate import Migrate,…
-
-1
votes1
answer126
viewsEmail outlook using Flask
I’m trying to create a code that sends email outlook with flask, but for some reason it won’t, I tested with gmail, tbm is not going from flask import Flask from flask_mail import Mail, Message app…
-
-1
votes1
answer37
viewsFlask import problem (Unable to import 'controllers' pylint(import-error)
Good evening, I’m starting to program now and I’m trying to make a simple system using the Flask framework, but during the organization of the files I came across the problem of the title, I’m not…
-
-1
votes0
answers15
viewserror 403 Forbidden free market
I am trying to register a product on the platform following the ML API documentation, using the Python requests library, I did all the procedure that is in the documentation, but the server responds…
-
-1
votes0
answers26
viewsHow to display elements in html according to the python flask database id?
This is my view in case you would like to know how to filter what will be shown in the next route for example in the group table has the id and in the table layer tbm according to your id in the…
-
-1
votes1
answer213
viewsFlask ajax html communication
I would like a help with a Python application using the Flask framework, I want to send data to html ,and then show this data in a table. the function of flask : @myapp.route('/treino',…
-
-1
votes1
answer690
viewsstring indices must be integers
I have a Json that returns this data: "errorCode": 0, "result": [ { "username": "Captain Samafa", "callsign": "24K", "latitude": 39.7100376616406, "longitude": 59.01369415537506, "altitude":…
-
-1
votes1
answer76
viewsHow to receive user data and return function value using flask?
I have a project where I would like to apply a python function using user-given information and return the function result to html. I know you normally use javascript for these cases, but my…
-
-1
votes1
answer44
viewsHow to define JSON properties to use in a for loop?
I’m reading a JSON that looks like this: Google Books and trying to display it in HTML. The user’s search input is the seek which is received through the request.form.get down below: import requests…
-
-1
votes0
answers11
viewsHow to make a url redirect in flask outside of @app.route
I’m trying to consume a free market api using Python along with flask, to be able to use this API, I need to generate a token and to generate a token, I need a client authorization code, ie, will…
-
-1
votes1
answer29
viewsHow to align side by side the li tag inside the for loop in html flask jinja2?
How do I align side by side the tag li within the loop for in flask {% for g in groups %} <div class='circle'> <ul class="circle-list"> <li class="group"> <a href="/layers">…
-
-2
votes1
answer48
viewsBase64 getting corrupted via post in flask
I’m sending a Base64 inside a post to flask, and it’s replacing the "+" plus sign with spaces " ". Example of original code: curl -X POST localhost:5000/api/send -d 'data={"num": "01", "msg":…
-
-2
votes1
answer35
viewsHow to set specific directory for Render_template flask?
I am rendering an html report using the Flask render_template. By default render_template renders what is in the template folder, however, I need to change to make the directory another. I tried to…
-
-2
votes1
answer36
viewsHow to convert the expires token to a date
Hello, I am starting my walk with Python and JWT, I am authenticating myself in an external API and I have as return the Token and the "expires_in", however the value comes in a format I need to…
-
-2
votes1
answer26
viewsDeployment Python/Flask Application Failure in Heroku
Hello, I’m starting my journey with Python and Flask, I developed an application and I’m currently trying to upload it to Heroku, but I have the following error message in the panel log: I…
-
-3
votes1
answer39
viewshow to transform this query to flask sqlalchemy object-oriented
I’ve been trying to do this for three days, I even managed to make it work directly in the database, but object-oriented in flask with sql Alchemy was not. select cod_quest from questoes a where…
-
-3
votes1
answer53
viewsPython Flask Typeerror: 'Nonetype' argument is not iterable
I have a Web Application that uses Flask that was working right only it is now returning me an error. The application does a search in the name of the players in a json file, in the execution of the…
-
-4
votes1
answer190
viewsWhat’s the difference between Django and Flask
What is the difference between Django and flask framework benefits and which one is currently most used in the market?