Flask-Admin vs Flask-AppBuilder

I am new to Flask and have noticed that there are two plugins that enable CRUD views and authorized login, Flask-Admin and Flask-AppBuilder. These two features interest me along with nice...

Deploy Flask-AppBuilder to a Subdirectory

I want to deploy a Flask-AppBuilder application to domain.com/subdirectory. Unfortunately, Flask-AppBuilder seems to hard code the static assets, such as CSS files, using the absolute path...

Problems running Flask-Appbuilder 1.3.2

I have installed correctly the Flask-appbuilder package, and I trying to execute the fabmanager, it shows the following lines: (venv)[email protected] ~ $ fabmanager Traceback (most recent...

Rotating consumer_secret with Flask-Appbuilder

There is a Flask-Appbuilder app with a custom SecurityManager that looks up the user token that it gets from a browser. We get the client credentials on the start of the app. And it works fine...

Flask-appbuilder many-to-may relationship sqlalchemy.exc.NoReferencedTableError Error

I've read through all of these (https://stackoverflow.com/search?q=sqlalchemy.exc.NoReferencedTableError%3A), the Flask-appbuilder docs, the sqlalchemy docs, and the Flask-sqlalchemy docs and...

Flask appbuilder large application

I have built a "Large" application using Flask-AppBuilder and have 2 questions I have not seen the answer to. Is there any way to "split" a large application into multiple components...

get current language in flask appbuilder

I have a simple app wrote with Flask Appbuilder, the view.py is as follows. It is part of exmaple in http://flask-appbuilder.readthedocs.io/en/latest/views.html with a little change in method1...

REST API 'or' query in flask-AppBuilder

This is a question about flask-AppBuilder. I have read the docs and googled for an example but I have not found a solution. The page below says: All filters are AND operations. We can filter by...

Flask-AppBuilder how to set primary key on create?

My users should be able to create new rows for my table, but when I use the plus-button in Flask-AppBuilder, the primary key is not shown and the generated SQL INSERT statement is missing the...

Ordering data in a Flask Appbuilder view

I am using Flask Appbuilder 1.5.0 and have the following Model class RegistrationTest(Model, ModelEnhancer): __tablename__ = "Registration" RegistrationID = Column(Integer,...

Generating models for Flask-AppBuilder using flask-sqlqcodegen

I'm a beginner in Python and Flask ecosystems, trying to create a small proof-of-concept Web application for a research project. I'm using Debian Linux 7.9, PostgreSQL 9.5, SQLAlchemy (latest) and...

Where does query.filter code go in a Flask-AppBuilder view?

Lets assume we have the following simple view in Flask-AppBuilder : class Table_AView(ModelView): datamodel = SQLAInterface(Table_A) label_columns = {'Field_A':'A'} ...

How to run flask appbuilder with uWSGI and Nginx

I build a web server with flask appbuilder,i can run this project by command: python3 run.py or fabmanage run,but it always No response when not interaction after some hours,So i try to run it...

Using OAUTH Bearer Token on Flask-Appbuilder REST endpoints

Is it possible to somehow configure Flask-Appbuilder so that its REST API would accept Authorization header containing Bearer {my_token} in it?

flask appbuilder how to pass data to actions - solved

i have a Flask-AppBuilder web page, I want to create a new page for our staff to use for send message to telegram Model: class Push(Model): __tablename__ = 'push' id = Column(Integer,...

Flask AppBuilder redirect_uri scheme control

I am working on deploying Apache Airflow with RBAC enabled, using AWS Cognito as an OAuth provider. I have all components set up, and have seen it work when running Airflow locally. However, I am...

How to map LDAP AD Groups to User roles in python flask AppBuilder

I'm currently trying to map automatically user groups in LDAP to user roles in a flask AppBuilder framework based application but can't come up with a solution. I have read through the entire...

Flask-appbuilder problems when try to redirect a form

I'm having fun with flask and flask-appbuilder module and I have one problem which I can't resolve. I have this piece of code in my views.py: from flask.ext.appbuilder import AppBuilder, BaseView,...

flask-appbuilder table view of all columns in table

Using Flask-Appbuilder I can't work out how to do the seemingly simple task of displaying all values from all columns in a table as a ModelView ie: col1 col2 col3 1 x y 2 p...

Decorator for SecurityManager in flask appbuilder for superest

I'm trying to add a custom user information retrieval from OAuth in superset, which is build on top of flask-appbuilder. Official doc provides following information: > Decorate your method with...

Flask-appbuilder RESTful API vs Flask-RESTful API

I am trying to use Flask-appbuilder in an IoT project. So, FAB is used for rapid application buildup and we need dedicated RESTful API for Mobile App and 3rd party service suppliers. In FAB, there...

Flask-AppBuilder AttributeError: 'tuple' object has no attribute 'columns'

I have a class "catalogue" in my database with multiple columns. Flask-AppBuilder however seems to miss them, as it throws AttributeError: 'tuple' object has no attribute...

Saving related model instance from model method with Flask AppBuilder and SQLAlchemy

In Flask AppBuilder, for one of my model (Parent) views, I have a post_add method which triggers a method for this instance of the model: def post_add(self, item): item.create_children() As...

Flask-appbuilder how to add audit logging for any row changes on a table?

I am trying to build a user table with flask-appbuilder and want to log any insert,update,delete changes on this table. My code below extends the Auditmixin so that I will have auto columns to...

jsonschema 2.6.0 is installed but jsonschema>=3.0.1<4 is required by {'flask-appbuilder'}

I'm setting up superset-0.28.1. when I use command as follows python setup.py install. error: jsonschema 2.6.0 is installed but jsonschema>=3.0.1<4 is required by {'flask-appbuilder'}

Flask Appbuilder - reduce decimals from created_on, changed_on

Is there a way to reduce the number of decimals from flask appbuilder's created_on, created_by columns? I have tried (views.py): class MyModelView(ModelView): formatters_columns =...

How to define display order of edit view in Flask appbuilder?

According to document of flask appbuilder, the display order of Model detail view can be defined as following: class DeviceView(ModelView): datamodel = SQLAInterface(Device) ...

MyIndexView error in theme example does not work in Flask-AppBuilder

I implemented steps 1, 2 and 3 from the "Changing the index" section of this page https://flask-appbuilder.readthedocs.io/en/latest/customizing.html?highlight=theme. I get the following...

Flask AppBuilder how to insert or update other tables after Model insert or update

Flask AppBuilder automatically insert or update the datamodel in the View but I want to be able after to do others insert or update in other tables depending on the data. How to do that?

Flask-AppBuilder equivalent of SQLite WHERE clause to filter column data

I'm new to Flask and have started designing a front end for an inventory management database using Flask-AppBuilder. I have created several models and have have managed to display my sqlite data...