更新时间:2021-06-24 13:58:56
coverpage
Title Page
Copyright and Credits
Flask Framework Cookbook Second Edition
About Packt
Why subscribe?
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Flask Configurations
Setting up our environment with virtualenv
How to do it...
How it works...
There's more...
Handling basic configurations
Configuring using class-based settings
Organizing static files
Being deployment-specific with instance folders
Composition of views and models
Creating a modular web app with blueprints
Making a Flask app installable using setuptools
Templating with Jinja2
Bootstrapping the recommended layout
Implementing block composition and layout inheritance
Creating a custom context processor
Creating a custom Jinja2 filter
Creating a custom macro for forms
Advanced date and time formatting
See more
Data Modeling in Flask
Creating an SQLAlchemy DB instance
Creating a basic product model
Creating a relational category model
Migrating databases using Alembic and Flask-Migrate
Indexing model data with Redis