Questions tagged as 'flask'

0
answers

how do I work with flask-login on a blueprint

I am creating a small application where I created a directory containing a blueprint containing all the pages that are referable to the logged in user, but when the user logs in and is redirected to your page I can not work with flask-login, cur...
asked by 16.12.2018 / 14:00
1
answer

Error in application deploy Flask

I'm trying to deploy a flask application the same way I do when I'm using python2.7, but in this case I'm using python3 and an error is returned in wsgi. Below is the first line of the apache2 traceback. [Thu Dec 06 23:01:04.823744 2018] [wsgi...
asked by 07.12.2018 / 00:17
0
answers

Q: SQL login verification ALCHEMY Pending

I am creating a login to give access to the tool that I am beginning to create, the database is SQL Server The project structure is this: ├── Project │ ├── Controllers │ │ ├── __init__.py │ │ └── Mapping_Login │ │ ├── __in...
asked by 30.11.2018 / 10:31
0
answers

Error: TemplateNotFound Pending

I'm trying to create a basic application, but I'm not able to render the template in the application Project Structure ├── Project │ ├── Controllers │ ├── __init__.py │ ├── __init__.pyc │ ├── Models │ │ └── Conexao │ ├── template...
asked by 24.11.2018 / 20:17
1
answer

How to correct this error Json

I am collecting data from an Api that takes me back to the information in a Json dictionary to play in an appweb, so the server gives me this error, how can I do that to correct it? Error giving: Traceback (most recent call last): File "/...
asked by 14.11.2018 / 21:55
1
answer

Mask using flask does not load

This is the header: <script src="{{ url_for('static', filename='jquery-2.1.4.min.js') }}"></script> <script src="{{ url_for('static', filename='main.js') }}"></script></script> This is the field code that I wan...
asked by 09.10.2018 / 17:55
0
answers

How to use the 'len' function in a python template - Flask

I have an AppWeb in python-Flask that I would like to show the number of players online, but I'm kind of lost in this part I already tried {% len (data)%} and {% data | length%} and neither method had result. if anyone can help me in that part....
asked by 13.10.2018 / 21:15
0
answers

Problems with form Flask-Admin with additive fields in the relationship N-N

I have the models below class ProdutosIngredientes(db.Model): __tablename__ = 'produtos_ingredientes' id = db.Column(db.Integer(), primary_key=True) produtos_id = db.Column('produtos_id', db.Integer, db.ForeignKey('produtos.id'))...
asked by 03.10.2018 / 02:37
1
answer

How to use two decorator APIs in Appweb Flask

I'm new to the programming world and I'm looking forward to a more in-depth web application. I made a resquests of a json dictionary of two different api. IwanttoputthisdatascrapingintoatableinmyindexpagesoI'mnotsurehowtodothiswithtwoapi....
asked by 27.09.2018 / 22:50
1
answer

GitLab CI passes the test even with error

I'm working with python / flask in an application. I want to test the CI of GitLab, so I did a test that generates an error, just to see how it would work. But, it happens that the CI passes the Job even giving error. can you help me?     
asked by 22.09.2018 / 15:27