Patterns for Flask (part1)¶
Certain things are common enough that the chances are high you will find them in most web applications. For example quite a lot of applications are using relational databases and user authentication. In that case, chances are they will open a database connection at the beginning of the request and get the information of the currently logged in user. At the end of the request, the database connection is closed again.
There are more user contributed snippets and patterns in the Flask Snippet Archives.
- 1. Larger Applications
- 2. Application Factories
- 3. Application Dispatching
- 4. Implementing API Exceptions
- 5. Using URL Processors
- 6. Deploying with Setuptools
- 7. Deploying with Fabric
- 8. Using SQLite 3 with Flask
- 9. SQLAlchemy in Flask
- 10. Uploading Files
- 11. Caching
- 12. View Decorators
- 13. Form Validation with WTForms