July 2019
Beginner to intermediate
302 pages
9h 38m
English
Adding a simple admin interface to any Flask application using the Flask-Admin extension is just a matter of a couple of statements:
from flask_admin import Admin app = Flask(__name__) # Add any other application configuration admin = Admin(app)
from flask_admin import BaseView, expose
class HelloView(BaseView):
@expose('/')
def index(self):
return self.render('some-template.html')
After this, add this view to the admin object ...