Skip to Content
Flask Web开发:基于Python的Web应用开发实战(第2版)
book

Flask Web开发:基于Python的Web应用开发实战(第2版)

by Miguel Grinberg
August 2018
Intermediate to advanced
230 pages
6h 42m
Chinese
O'Reilly Media, Inc. Beijing
Content preview from Flask Web开发:基于Python的Web应用开发实战(第2版)
xi
前言
与其他框架相比,
Flask
之所以能脱颖而出,原因在于它让开发者做主,使其对应用拥有
全面的创意控制。或许你听过“和框架斗争”这一说法。在大多数框架中,当你决定使用
的解决方案不受框架官方支持时就会发生这种情况。你可能想使用不同的数据库引擎或者
不同的用户身份验证方法。但是,这种偏离框架开发者设定路线的做法往往会给你带来很
多麻烦。
Flask
就不一样了。你喜欢关系型数据库?很好。
Flask
支持所有的关系型数据库。或许你
更喜欢使用
NoSQL
数据库?没问题,
Flask
也支持。想使用自己开发的数据库引擎?根本
用不到数据库?依然没问题。在
Flask
中,你可以自主选择应用的组件,如果找不到合适
的,还可以自己开发。就这么简单。
Flask
之所以能给用户提供这么大的自由度,关键在于其开发伊始就考虑到了扩展性。
Flask
提供了一个强健的核心,其中包含每个
Web
应用都需要的基本功能,而其他功能则
交给生态系统中众多的第三方扩展——当然,你也可以自行开发。
本书将展示我自己使用
Flask
开发
Web
应用的工作流程。我不觉得这是使用
Flask
开发应
用的唯一正确方式。你应该把我的选择作为一种推荐方式,而不是真理。
大部分软件开发类图书都使用短而精的示例代码,孤立地演示所介绍技术的功能,让读者
自己去思考如何使用“胶水”代码把这些不同的功能组合起来,开发出完整可用的应用。
本书采用了完全不同的方式。本书中的示例代码都摘自同一个应用,开始时很简单,后续
逐章进行扩展。最初这个应用只有几行代码,最后将变成功能完善的博客和社交网络应用。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习基础教程

Python机器学习基础教程

Andreas C. Müller, Sarah Guido
Python编程入门与实战

Python编程入门与实战

Posts & Telecom Press, Fabrizio Romano
程序设计导论:Python语言实践

程序设计导论:Python语言实践

罗伯特 塞奇威克, 凯文 韦恩, 罗伯特 唐德罗

Publisher Resources

ISBN: 9787115489456