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

Introduction


As opposed to the much popular Python-based web framework, Django, Flask does not provide an admin interface by default. Although this can be seen as a shortcoming by many, this gives the developers the flexibility to create the admin interface as per their requirements and have complete control over the application.

We can opt to write an admin interface for our application from scratch or use an extension of Flask, which does most of the work for us and gives us the option to customize the logic as needed. One very popular extension for creating admin interfaces in Flask is Flask-Admin (https://pypi.python.org/pypi/Flask-Admin), which is inspired by the Django admin but is implemented in a way that the developer has complete control over the look, feel, and functionality of the application. In this chapter, we will start with the creation of an admin interface on our own and then move onto using the Flask-Admin extension and fine-tuning it as needed.