Questions tagged as 'flask'

2
answers

Flask MVC - doubts

I have doubts about making my application as organized as possible, I'm having a hard time implementing MVC ... ThisisthefilethatlaunchestheapplicationfromflaskimportFlaskapp=Flask(__name__,template_folder='template')app.run(debug=True)Thisisth...
asked by 08.09.2018 / 19:17
1
answer

Is there a list of objects when sending requests in html?

I'm developing a small python (flask) web project for self-learning and came across something I've never faced before. I have a registration form where the fields of an information are dynamic, ie via jquery I can create and delete fields bec...
asked by 16.08.2018 / 22:00
1
answer

Error every time I do a Requests Flask

When I make a request from an Api to show the number of players in my template where "For in range (200)" it returns the data and not the error. <table class="cor"> <tr class="fundo"> <th>T...
asked by 01.05.2018 / 22:40
1
answer

Vertical table template Flask

I'm a beginner in flask and in front end I have a table that returns me information from an API, but instead of it playing information in the table vertically it's going to horizontal, how do I fix it? / p> <!doctype html> <html> &l...
asked by 10.04.2018 / 20:51
1
answer

Flask: Stream radio

This is the first one that I will try to embark on in this style project and I have some doubts that I would like to clarify, this may sound very lay. I will use Flask for development and radio is established on the SHOUTcast platform, I con...
asked by 21.04.2018 / 21:02
2
answers

Debug with Flask / Python

I'm studying the Flask framework. It happens that I need debugar a request object with form data. I also need to stop at a certain point, like die() in PHP. How do I do this? I've already tried to os.exit(1) , but the Flask s...
asked by 17.03.2018 / 22:11
1
answer

Friendly urls with flask [closed]

Good afternoon, I'm developing a system using the python Flask framework and would like to know how I can create friendly urls for the system? Do I have to use some other framework or something?     
asked by 11.02.2018 / 20:52
1
answer

Python - Error in Mongo Engine, Error: Tried to save duplicate unique keys (Duplicate Key Error)

Python is trying to save more than one user in Json but it does not accept the introduction of more than one, it always gives the:    Tried to save duplicate unique keys (Duplicate Key Error) Here is the code: from .model import User, U...
asked by 29.08.2017 / 21:27
1
answer

Many to Many WTForms Flask SQLAlchemy

Good evening! I am implementing a system with wtforms flask , and stopped in the following situation: I have CRUD products and a CRUD Budget so I will have product items in the budget (n: n). In surveys I've done only with example "SelectFie...
asked by 05.08.2016 / 05:37
1
answer

Creation of flask-sqlalchemy tables

I'm developing a small application in Flask and I'm using the Flask-SQLAlchemy, Flask-Migrate, and Flask-Script extensions to manage my migrations in the database, following my application's configuration. # -*- coding: utf-8 -*- from flask i...
asked by 22.12.2018 / 04:04