Flask offers several ways of designing and laying out the URL routing for our applications. Also, it gives us the flexibility to keep the architecture of our views as simple as just functions to a more complex but extensible class-based layout (which can be inherited and modified as needed). In earlier versions, Flask just had function-based views. However, later, in version 0.7, inspired by Django, Flask introduced the concept of pluggable views, which allows us to have classes and then write methods in these classes. This also makes the process of building a RESTful API pretty simple. Also, we can always go a level deeper into Werkzeug and use the more flexible but slightly more complex concept of URL maps. In fact, large applications and frameworks prefer using URL maps.
Flask Framework Cookbook
By :
Flask Framework Cookbook
By:
Overview of this book
Table of Contents (19 chapters)
Flask Framework Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Flask Configurations
Templating with Jinja2
Data Modeling in Flask
Working with Views
Webforms with WTForms
Authenticating in Flask
RESTful API Building
Admin Interface for Flask Apps
Internationalization and Localization
Debugging, Error Handling, and Testing
Deployment and Post Deployment
Other Tips and Tricks
Index
Customer Reviews