万本电子书0元读

万本电子书0元读

顶部广告

Building Web Applications with Flask电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Italo Maia

出  版  社:Packt Publishing

出版时间:2015-06-26

字       数:66.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are a Python web developer who wants to learn more about developing applications in Flask and scaling them with industry-standard practices, this is the book for you.
目录展开

Building Web Applications with Flask

Table of Contents

Building Web Applications with Flask

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Flask in a Flask, I Mean, Book

An introduction to Flask and its features

Summary

2. First App, How Hard Could it Be?

Hello World

Prerequisites and tools

Setting up a virtual environment

Understanding the "Hello World" app

Serving HTML pages

Summary

3. Man, Do I Like Templates!

What is Jinja2 and how is it coupled with Flask?

What can you do with Jinja2?

Control structures

Macros

Extensions

Filters

Messing with the template context

Summary

4. Please Fill in This Form, Madam

HTML forms for the faint of heart

Handling forms

WTForms and you

Flask-WTF

Integration with WTForms

Securing forms with a CSRF token

Challenges

Summary

5. Where Do You Store Your Stuff?

SQLAlchemy

Concepts

Hands on

Flask-SQLAlchemy

MongoDB

MongoEngine

Flask-MongoEngine

Relational versus NoSQL

Summary

6. But I Wanna REST Mom, Now!

Beyond GET

Flask-Restless

Summary

7. If Ain't Tested, It Ain't Game, Bro!

What kinds of test are there?

Unit testing

Behavior testing

Flask-testing

LiveServer

Extra assertions

JSON handle

Fixtures

Extra – integration testing

Summary

8. Tips and Tricks or Flask Wizardry 101

Overengineering

Premature optimization

Blueprints 101

Oh God, please tell me you have the logs…

Debugging, DebugToolbar, and happiness

Flask-DebugToolbar

Sessions or storing user data between requests

Exercise

Summary

9. Extensions, How I Love Thee

How to configure extensions

Flask-Principal and Flask-Login (aka Batman and Robin)

Admin like a boss

Custom pages

Summary

10. What Now?

You deploy better than my ex

Placing your code in a server

Setting up your database

Setting up the web server

StackOverflow

Structuring your projects

Summary

Postscript

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部