Questions tagged [flask-appbuilder]

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more.

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more.

https://github.com/dpgaspar/Flask-AppBuilder

157 questions
0
votes
1 answer

Flask-AppBuilder synchronization

I have built an easy template on top of Flask-appBuilder https://flask-appbuilder.readthedocs.io/en/latest/installation.html. You can see it here: https://flask-appbuilder-skeleton-1.progettazione.repl.co/. The problem comes when I want to…
0
votes
1 answer

Apache Superset and Auth0 returns "The browser (or proxy) sent a request that this server could not understand."

I'm trying to set up Superset with Auth0. I've found somewhat similar issues here and here. I've set up the following configuration based on the first link above and trying to follow the Superset and Flask-AppBuilder docs: from…
Ryan Riley
  • 11
  • 2
0
votes
1 answer

How to display hyperlinked foreign keys?

This is my first use of flask-appbuilder, and the question seems to me quite basic. Sorry if it is trivial, but my research did not allow me to find useful information. Anyway. I would like to allow the user to navigate through the data by following…
0
votes
1 answer

How to secure Superset '/login/' endpoint

Recently I integrated superset with my web application so that when an user who is authenticated by my web application can enter superset and view/edit/create dashboards based on their role just by clicking the link no need to even login. For doing…
Swastik
  • 144
  • 2
  • 19
0
votes
1 answer

Can I modify add form field, to have select list from data got by external API?

I want to extend one field from add form, to be able to choose option from select list got by external API. Let me explain the question. I've got model like this: class ContactGroup(Model): id = Column(Integer, primary_key=True) name =…
0
votes
1 answer

Flask appbuilder how to use existing model to create a new model and save into DB

Basically I have model A and B . class A(ModelView): datamodel = SQLAInterface(Tabel_A) and class B(ModelView): datamodel = SQLAInterface(Table_B) A has a action like : @action("mularchive", "Archieve", "Archieve all Really?", "fa-rocket",…
CD-Key
  • 63
  • 1
  • 7
0
votes
1 answer

Disable/Hide/Remove Docs menu in Apache Airflow GUI

I have installed Airflow in my Ubuntu system and trying to deploy Airflow to production. I would like to turn off the menu Docs on the UI (browser). I was reading setting permissions on the menus here access-control but it is hard to turn off this…
techrhl
  • 434
  • 8
  • 19
0
votes
0 answers

Flask AppBuilder - How how to handle some database variables having a slash

I am using the ModelView to present a table and allow it to be edited. Most of the time the content works. If the value in a row is for example "10.0.0.1/24" then the route editing it would be: "127.0.0.1/nets/10.0.0.1/24" which is wrong and results…
Dimitry Rakhlei
  • 191
  • 1
  • 13
0
votes
1 answer

Flask-AppBuilder Security on Views/APIs for Logged in User

I have a model called Account. Registered users in the ab_user table can be associated with M accounts. The model looks like this: class Account(Model, AuditMixin): __tablename__ = "accounts" id = Column(Integer) user_id =…
Jason Strimpel
  • 14,670
  • 21
  • 76
  • 106
0
votes
1 answer

How to query a db Model from Flask AppBuilder's Model Class

I have a Model created in my Flask app that inherits from from flask_appbuilder import Model & now I want to query the Model data to get a specific record using something like MyModel.query.get(id='someid') which used to work with Flask-SQLAlchemy…
0
votes
1 answer

What is the best way to enable a custom error page (e. g., 404) with Apache Superset?

We have a Superset instance, which is great, fantastic tool, and after a security change recently a user got a 500 with a stacktrace: File "/opt/superset/venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response =…
Richard Rymer
  • 133
  • 14
0
votes
1 answer

Error: flask_appbuilder.security.sqla.manager:DB Creation and initialization failed when trying to start the application using gunicorn

I have built an application using flask_appbuilder. I am trying to serve the application using gunicorn and am getting this error: $ gunicorn app:app [2021-05-25 09:18:40 +0300] [1211266] [INFO] Starting gunicorn 20.1.0 [2021-05-25 09:18:40 +0300]…
James Njuguna
  • 604
  • 2
  • 12
  • 24
0
votes
1 answer

Handling g.user variable undefined errors?

Within our jinja templates we have a block of code that tries to create a span for the current user: {{g.user.get_full_name()}} However, if the user happens to clear the cookies on his browser, this…
drakzuli
  • 43
  • 6
0
votes
0 answers

Flask api called in get request from react native side but give access denied

I am trying to called flask api from react native side using fetch,it works properly in android but it always give access denied when calling from ios. this is the api called from react native: BackgroundTimer.runBackgroundTimer(() =>…
Dipali
  • 1
  • 3
0
votes
1 answer

For flask appbuilder[modelview], How to add action without select any item

I use flask-appbuilder, I use ModelView Like: class ListView(ModelView): datamodel = SQLAInterface(mylist) edit_form = listEditForm list_title = "List" list_columns = ["listid",'listtype','listowner', 'creationtime',…
user504909
  • 9,119
  • 12
  • 60
  • 109