Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Flask Framework

You're reading from   Learning Flask Framework Build dynamic, data-driven websites and modern web applications with Flask

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher
ISBN-13 9781783983360
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating Your First Flask Application 2. Relational Databases with SQLAlchemy FREE CHAPTER 3. Templates and Views 4. Forms and Validation 5. Authenticating Users 6. Building an Administrative Dashboard 7. AJAX and RESTful APIs 8. Testing Flask Apps 9. Excellent Extensions 10. Deploying Your Application Index

Chapter 6. Building an Administrative Dashboard

In this chapter, we will build an administrative dashboard for our website. Our admin dashboard will give certain, selected, users the ability to manage all the content across the entire site. In essence, the admin site will be a graphical frontend for the database, supporting operations for creating, editing, and deleting rows in our application's tables. The excellent Flask-Admin extension provides almost all these functionalities out-of-the- box, but we will go beyond the defaults to extend and customize the admin pages.

In this chapter we shall:

  • Install Flask-Admin and add it to our website
  • Add views for working with the Entry, Tag, and User models
  • Add a view for managing the website's static assets
  • Integrate the admin with the Flask-Login framework
  • Create a column to identify a user as an administrator
  • Create a custom index page for the admin dashboard
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image