flask-admin Questions
4
I am trying to learn Python/Flask/SQLAlchemy by building a simple Wiki (heavily based off of a Flask-Admin example) but am struggling to understand how to get a new column from my many-to-many rela...
Skidway asked 9/7, 2014 at 4:32
2
I am trying to learn more about Flask by building a CMS. I am using flask-admin to add the posts, images etc.
I have managed to override textarea with ckeditor. But I want to pass the paths of the...
Ranch asked 20/12, 2013 at 17:49
2
Solved
I'm trying to RTL the flask admin template, I know I can override the existing templates, but how do I change only the CSS? Any ideas?
Bougainville asked 30/9, 2015 at 8:37
2
Solved
I have a Flask app deployed on Azure. Without changing any of the dependencies I'm suddenly getting this error, ImportError: cannot import name 'contextfunction' from 'jinja2'. Seems to be related ...
Carbo asked 27/3, 2022 at 7:33
3
I have a model with a __repr__ method, which is used for display in Flask-Admin. I want to display a different value, but don't want to change the model. I found this answer, but that still require...
Quittor asked 4/5, 2016 at 14:57
3
Solved
I want to add a field projects to my User edit form with Flask Admin.
To do so I tried to override the edit_form method to add the field as an additional attribute to the form, but the field is no...
Bik asked 6/3, 2019 at 10:43
5
for example:
from flask import Flask
from flask.ext.admin import Admin, BaseView, expose
class MyView(BaseView):
@expose('/')
def index(self):
return self.render('index.html')
app = Flask(__n...
Underfeed asked 27/2, 2014 at 9:54
2
Solved
One feature I have been struggling to implement in flask-admin is when the user edits a form, to constrain the value of Field 2 once Field 1 has been set.
Let me give a simplified example in words...
Madox asked 11/11, 2015 at 22:12
3
I have been intending to create a custom form validation logic that's based on multiple field values (in my case, 2 fields to ensure date range data integrity is ensured, I.E. start_time < end_t...
Leotie asked 27/7, 2015 at 21:26
2
Solved
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 Master-D...
Sounder asked 8/5, 2015 at 14:44
5
Solved
How to set password_hash using generate_password_hash from the edit page of flask-admin
i create a username and password in python shell. the password is hashing
admin.add_view(MyModelView(User, ...
Molini asked 10/3, 2015 at 17:17
4
I tried to set a form field as readonly just for the edit view in a Flask-Admin application. Following the answers to this question I know that if I have this
class MyView(ModelView):
form_widget...
Beiderbecke asked 28/6, 2018 at 1:40
1
Solved
I want to add another button next to the edit and delete icons on flask admin list view. In addition, I want to send that row data to a route as a post request. I know that I have to edit the admin...
Imitable asked 15/9, 2020 at 12:22
2
Solved
according to the flask-admin docs I can extend the main flask-admin dashboard by creating the file templates/admin/index.html and extending admin/master.html. The HTML would look like this:
{% ext...
Alienation asked 17/3, 2019 at 21:52
5
Solved
Say I have a user model like:
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.String(255))
last_name = db.Column(db.String(255))
email =...
Filipe asked 13/3, 2018 at 20:37
2
Solved
I am currently diving into a flask project and try to use flask-admin for the first time. Everything is working fine so far, but one thing really bothers me:
Whenever I edit my User model the users...
Brindisi asked 27/8, 2016 at 20:0
6
Solved
The usual instructions for running Airflow do not apply on a Windows environment:
# airflow needs a home, ~/airflow is the default,
# but you can lay foundation somewhere else if you prefer
# (opt...
Sandasandakan asked 3/9, 2015 at 14:30
3
Solved
In Flask Admin, I got a column of String values (I can't change the DB definition). When filtering this column in the index view, the user should be able to select the value from a dropdown.
The p...
Thelmathem asked 16/11, 2016 at 7:58
4
I'm trying to implement Select2 field in one of my flask views. Basically I want the same select2 field in my flask application view (not a flask admin modelview) as in Flask-admin model create vie...
Sociology asked 31/10, 2014 at 22:0
4
Solved
class Parent(db.Model):
id = db.Column(db.Integer, primary_key = True)
name = db.Column(db.String(120))
def __repr_(self):
return '<Parent %r>' % (self.name)
admin.add_view(ModelView(Pa...
Ketch asked 23/4, 2013 at 3:39
3
Solved
I have a model in Flask-Admin with filter (e.g. based on Foreign Key to other model).
I want to generate links from front-end to this model view in admin with filter value applied. I noticed that ...
Succubus asked 6/3, 2016 at 21:53
2
Solved
In my application, I have Users and Posts as models. Each post has a foreign key to a username. When I create a ModelView on top of my Posts model I can create posts as specific users in the admin ...
Porphyroid asked 17/7, 2019 at 7:53
1
Solved
I have been searching on Google and StackOverflow about this. Basically, I want to try and override the delete function on Flask-Admin to not actually delete a record, but instead update a row of t...
Zealous asked 3/7, 2019 at 0:52
2
I'm trying to setup flask-admin model views with SQLAlchemy against 'user' and 'role' models. Instead of a function admin view I'm getting:
ValueError: Invalid model property name <class 'app.m...
Singly asked 13/2, 2015 at 21:5
4
I'm having trouble with the creation of blueprints by Flask-Admin when I'm testing my app.
This is my View class (using SQLAlchemy)
##
# All views that only admins are allowed to see should inher...
Miguelinamiguelita asked 1/8, 2013 at 19:22
1 Next >
© 2022 - 2024 — McMap. All rights reserved.