Questions tagged as 'flask'

1
answer

What are the differences between Flask and Django?

I started shortly in the Python language and am currently working on a project using Flask , MariaDB and WebSockets . I see people talk a lot about Django and would like to know the differences between two.     
asked by 23.08.2017 / 09:45
3
answers

How to run programs written in Python on windows hiding terminal feedback

I have the following situation: I have a program written in python that works with Gtk + webkit + flask. To run such a program I should log in to the CMD and type "python.py file" and it will starta my GUI application normally. Where according t...
asked by 23.12.2015 / 04:46
1
answer

Start and tear down test bank flask

I'm doing a test of api, that I pass a json it validates me if everything went ok: My base class: # -*- coding: utf-8 -*- # base.py import os import unittest from app import initialize from mock import mock from flask import Flask from fla...
asked by 22.03.2017 / 21:49
1
answer

Define class for a table

I'm starting now with Flask and I came across the following question: how do I define a table class using flask_table ? Here is my sample code and the result: from flask_table import Table, Col class TabelaDados(Table):...
asked by 04.05.2015 / 23:03
0
answers

How to load Flaskbb with Nginx?

I followed the documentation and installed everything without problems, but Nginx only shows the default page of it warning that it is running. The flaskbb forum never loads. I tried to remove the import from the Nginx default configuratio...
asked by 19.09.2016 / 02:50
2
answers

Flask and its contexts

I'm new to desenvolvimento Web and I'm studying FLask and it has some objects that should only be manipulated in certain context like Flask.g and Flask.current_app what I can not understand are the differences between...
asked by 30.11.2018 / 21:46
1
answer

Sending attachment with Flask-Mail

Configuring flask and testing was quick and easy but sending attachment is very difficult if not impossible. Does anyone have a tip or example to send attachments with Flask-Mail? My code looks like this: mail = Mail(app) MAIL_CONFIG = app....
asked by 23.06.2016 / 16:06
3
answers

How to execute the method inside a .py file by the terminal linux

How can I call a method that is inside a .py file directly from the Linux terminal, but I do not want to enter the prompt of the python For example [fedora@user ~]$ python arquivo.py metodo parametro Something like% Django / P...
asked by 15.08.2017 / 22:42
1
answer

Blueprints - what is the concept? What is it for?

As I voted for Flask (python), I now see so many examples using blueprints. What are? What are they for?     
asked by 14.06.2016 / 21:12
1
answer

How to make MYSQL Reverse Bank Engineering with SqlAlchemy?

I asked this question on Stackoverflow these days ago: How to import database to Django models? But now, I need something similar for Flask . I have a bank ready, using MYSQL . I want to reverse engineer my database, tr...
asked by 11.05.2016 / 18:35