Book Image

Flask Framework Cookbook

By : Shalabh Aggarwal
Book Image

Flask Framework Cookbook

By: Shalabh Aggarwal

Overview of this book

Table of Contents (19 chapters)
Flask Framework Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Admin Interface for Flask Apps

Every application needs an interface that provides special privileges to some users and can be used to maintain and upgrade the application resources. For example, we can have an interface in an e-commerce application; this interface will allow some special users to create categories, products, and so on. Some users might have permissions to handle other users who shop on the website and deal with their account information and so on. Similarly, there can be many cases where we will need to isolate an interface of our application from normal users.

In this chapter, we will cover the following recipes:

  • Creating a simple CRUD interface

  • Using the Flask-Admin extension

  • Registering models with Flask-Admin

  • Creating custom forms and actions

  • WYSIWYG for textarea integration

  • Creating user roles