Explore Flask

[作]  Robert Picard 更新时间:2014-6-1

Explore Flask is a book about best practices and patterns for developing web applications with Flask. The book was funded by 426 backers on Kickstarter in July 2013.

I finally released the book, after spending almost a year working on it. Almost immediately I was tired of managing distribution and limiting the book’s audience by putting it behind a paywall. I didn’t write a book to run a business, I wrote it to put some helpful content out there and help grow the Flask community.

In June of 2014, soon after finishing the book, I reformatted it for the web and released it here for free. No payment or donation or anything required. Just enjoy!

framework /  web /  python /  flask /  2014 /  英文

目录

  • Preface
    • Assumptions
    • Living document
    • Conventions used in this book
    • Easter eggs
    • Summary
  • Coding conventions
    • Let’s have a PEP rally!
    • Relative imports
    • Summary
  • Environment
    • Use virtualenv to manage your environment
    • Version control
    • Debugging
    • Summary
  • Organizing your project
    • Definitions
    • Organization patterns
    • Summary
  • Configuration
    • The simple case
    • Instance folder
    • Configuring based on environment variables
    • Summary
  • Advanced patterns for views and routing
    • View decorators
    • URL Converters
    • Summary
  • Blueprints
    • What is a blueprint?
    • Why would you use blueprints?
    • Where do you put them?
    • How do you use them?
    • Refactoring small apps to use blueprints
    • Summary
  • Templates
    • A quick primer on Jinja
    • How to organize templates
    • Inheritance
    • Creating macros
    • Custom filters
    • Summary
  • Static files
    • Organizing your static files
    • Manage static assets with Flask-Assets
    • Summary
  • Storing data
    • SQLAlchemy
    • Summary
  • Handling forms
    • Flask-WTF
    • Summary
  • Patterns for handling users
    • Email confirmation
    • Storing passwords
    • Authentication
    • Forgot your password
    • Summary
  • Deployment
    • The Host
    • The stack
    • Summary
  • Conclusion
最近更新
热门标签