Questions tagged as 'flask'

1
answer

Error with app Flask Babel Python3 (Windows)

I'm following the article's tutorial link I came in part III and gave this error. I'm confused because the author has run run.py inside the Script folder of virtualenv. Being that it commands to create run.py in the root...
asked by 29.08.2015 / 02:22
1
answer

Flask is only used by beginners? [closed]

Is Flask only recommended for those who do not have experience in web frameworks, ie for small projects (academic projects) or are recommended to develop large projects (industry projects)?     
asked by 19.10.2015 / 23:43
1
answer

FLASK - Change goable in template

I passed the template a variable and need to change (in the template) the value of it. Ex: no controller: return render_template('index.html', start_code = start_code) . I need to change start_code there in the template. How do I?...
asked by 01.11.2018 / 13:30
1
answer

404 when setting an app.route in Flask

I have this simple code available on the Flask page: from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run() When you upload the Service, everything wor...
asked by 14.07.2016 / 22:25
1
answer

Return list of JSONs

In path /getAll I want to return a list of JSONs however I get an object is not callable , why does this occur and how can I return to my JSON list? MyList was called list and after reading the following definition of callable the e...
asked by 27.03.2016 / 21:57
1
answer

Search and insertion do not work together - Flask

Hello, I'm doing a job that needs to insert values into the database, return them in a table and be able to delete them through Flask. I'm getting to know the tool and I can not find solutions. Getting the insertion on one page and the visualizat...
asked by 31.10.2018 / 22:55
1
answer

Circular import

A doc of Flask, although it uses in its examples, it alerts to the bottom of the page about the bad practice of using circular imports. Another thing that bothers me is to create "global objects" within a __init__.py file. What would...
asked by 03.07.2018 / 17:27
1
answer

Flask SQLAlchemy: KeyError

I'm trying to create a relationship in the database between the Article, Author and Category class, when I try to create an object from the Article class I get the error "KeyError:" article "referring to the line containing the code (author = db...
asked by 28.06.2018 / 20:12
1
answer

Error when running web application in flask - Python

Hello, I'm trying to run this application in Flask and when I try to view the page in the browser it appears server error when I delete the line of code that creates a list of items where each item is a link to another page error some, so I'm sur...
asked by 13.05.2018 / 03:12
1
answer

Inheritance in flask models

How do I make a class inherit another class in flask models? I'm creating the following User class in my models lass User(db.Model): __tablename__ = "users" id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String, uniqu...
asked by 03.05.2018 / 14:45