Creating a simple CRUD interface
CRUD refers to Create, Read, Update, and Delete. A basic necessity of an admin interface is to have the ability to create, modify, or delete the records/resources from the application as and when needed. We will create a simple admin interface that will allow admin users to perform these operations on the records that other normal users generally can’t.
Getting ready
We will start with the authentication application from the Authenticating using the Flask-Login extension recipe in Chapter 6, Authenticating in Flask, and add admin authentication with an interface for admins, which would allow only the admin users to create, update, and delete user records. Here, in this recipe, I will cover some specific parts that are necessary to understand the concepts. For the complete application, you can refer to the code samples available for the book.
How to do it...
To create a simple admin interface, perform the following steps:
- Start...