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jBpNbmwajt2ucQ3TWjMc48xENaFF+bt+trrO3APkeYQnWIchezGrCeQCuJBak7CHPL6pWl7b9Ch7RIy2VN2lY+kY19iAHND2JSim49yTsljDNo60HYromcd0LYiFIvtBMKJfu4n/nYNBPLvDFGgRrKs0KFEDUuhPwSd9tyTjBT7alCQcTzmRUaP7Chm9UWflUr2qfdg0Mi9hwOVPvGqLP5EgFyoXJ5ZEpm3cQ3aP6cRsUQ0et6Fd0+2uERA0adXk0aKdH+WlY64kuUpV5QRZakKMN7dpzQ1V8bqiLQERBdDGnLWlDVNjXCgUhrJOxN0REJGRemik0Z8Ex+jbURCWRT4gMq9QI88DKBAwlJu9rqb+yt9gTJNsN0XNcFWpjY6I1yHK4aide9LiLdza9XVOQt16GP9P0ec6LMxqptr3swjGCnV0uGqNyl2wmcNgsthM+tlkGX7KsU7fdMPY6Y0pEnufbk6RRxdg2DBvekcSDkzpyL7GoCtP3yN+ZRZSuLLsYZOzMExiP/k/mYJP3gBeIufB+75iCswJdRSKUXFE/RWfx+jmW96kVlq1i3kH3OOsLcalfIV4xYlAawtRSXLHd7k37BBPHIidGSHd+sihAPLTPzC+Twl1zYvLpPucqLBaJEgIkppxZ1IQKQjlEuaRNe5GPKPyZpLw1/b/x80CagUXbBDFcXDOcpm4Xn7dkx5FZQi72dVTOVkMwBb1n+iN9D7UPoz1/OCmGKztcFhWSVNV56/txloVhSBYNz2wIQ9edS6T0uRQal1i/V4OPq7K9/v8C3RHPa5qqJViwPb8sQXIEQVGWkXcJBYcc+2pbkTcQTOJfp4V/9I/+0Z9I/wNIu9bSXaPi9gAAAABJRU5ErkJggg==)

Flask 是一個(gè)使用 Python 編寫(xiě)的輕量級(jí) Web 應(yīng)用框架爽丹。其 WSGI 工具箱采用 Werkzeug 千劈,模板引擎則使用 Jinja2仅孩。

Flask 也被稱(chēng)為 “microframework” 筹燕,因?yàn)樗褂煤?jiǎn)單的核心栖茉,用 extension 增加其他功能。Flask沒(méi)有默認(rèn)使用的數(shù)據(jù)庫(kù)航背、窗體驗(yàn)證工具延柠。然而,F(xiàn)lask保留了擴(kuò)增的彈性外潜,可以用Flask-extension加入這些功能:ORM原环、窗體驗(yàn)證工具、文件上傳处窥、各種開(kāi)放式身份驗(yàn)證技術(shù)嘱吗。

本文檔分成幾個(gè)部分,推薦您先讀《安裝》滔驾,然后讀《快速上手》谒麦。《教程》 比快速上手文檔更詳細(xì)一點(diǎn),該文檔介紹了如何創(chuàng)建一個(gè)完整(盡管很卸咧隆)的 Flask 應(yīng)用绕德。如果你想深入研究 Flask ,那么需要閱讀 《API》摊阀∏ń常《Flask 方案》中介紹了一些常用的解決方案。

Flask 依賴(lài)兩個(gè)外部庫(kù): Jinja2 模板引擎和 Werkzeug WSGI 套件驹溃。這兩個(gè)庫(kù)的 使用不在本文檔的范圍內(nèi)城丧,欲知詳情請(qǐng)移步:

適用人群

本課程適用于希望通過(guò) Flask 框架開(kāi)發(fā) Web 應(yīng)用的開(kāi)發(fā)人員。

學(xué)習(xí)前提

我們假定你在學(xué)習(xí)本課程之前對(duì) Python 語(yǔ)言非常熟悉并掌握基本的 Web 開(kāi)發(fā)知識(shí)豌鹤。

版本信息

書(shū)中演示代碼基于以下版本:

語(yǔ)言/框架 版本信息
Python 支持Python2.6 以上版本

原文地址: http://dormousehole.readthedocs.org/en/latest/

原文譯者: dormouse young dormouse.young@yahoo.com

本課程中文內(nèi)容遵從 CC BY-NC-SA 3.0 CN 協(xié)議

? Copyright 2013, Armin Ronacher. Created using Sphinx.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末亡哄,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子布疙,更是在濱河造成了極大的恐慌蚊惯,老刑警劉巖愿卸,帶你破解...
    沈念sama閱讀 206,013評(píng)論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異截型,居然都是意外死亡趴荸,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,205評(píng)論 2 382
  • 文/潘曉璐 我一進(jìn)店門(mén)宦焦,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)发钝,“玉大人,你說(shuō)我怎么就攤上這事波闹≡秃溃” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 152,370評(píng)論 0 342
  • 文/不壞的土叔 我叫張陵精堕,是天一觀的道長(zhǎng)孵淘。 經(jīng)常有香客問(wèn)我,道長(zhǎng)歹篓,這世上最難降的妖魔是什么瘫证? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 55,168評(píng)論 1 278
  • 正文 為了忘掉前任,我火速辦了婚禮庄撮,結(jié)果婚禮上痛悯,老公的妹妹穿的比我還像新娘。我一直安慰自己重窟,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,153評(píng)論 5 371
  • 文/花漫 我一把揭開(kāi)白布惧财。 她就那樣靜靜地躺著巡扇,像睡著了一般。 火紅的嫁衣襯著肌膚如雪垮衷。 梳的紋絲不亂的頭發(fā)上厅翔,一...
    開(kāi)封第一講書(shū)人閱讀 48,954評(píng)論 1 283
  • 那天,我揣著相機(jī)與錄音搀突,去河邊找鬼刀闷。 笑死,一個(gè)胖子當(dāng)著我的面吹牛仰迁,可吹牛的內(nèi)容都是我干的甸昏。 我是一名探鬼主播,決...
    沈念sama閱讀 38,271評(píng)論 3 399
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼徐许,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼施蜜!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起雌隅,我...
    開(kāi)封第一講書(shū)人閱讀 36,916評(píng)論 0 259
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤翻默,失蹤者是張志新(化名)和其女友劉穎缸沃,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體修械,經(jīng)...
    沈念sama閱讀 43,382評(píng)論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡趾牧,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 35,877評(píng)論 2 323
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了肯污。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片翘单。...
    茶點(diǎn)故事閱讀 37,989評(píng)論 1 333
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖仇箱,靈堂內(nèi)的尸體忽然破棺而出县恕,到底是詐尸還是另有隱情,我是刑警寧澤剂桥,帶...
    沈念sama閱讀 33,624評(píng)論 4 322
  • 正文 年R本政府宣布忠烛,位于F島的核電站,受9級(jí)特大地震影響权逗,放射性物質(zhì)發(fā)生泄漏美尸。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,209評(píng)論 3 307
  • 文/蒙蒙 一斟薇、第九天 我趴在偏房一處隱蔽的房頂上張望师坎。 院中可真熱鬧,春花似錦堪滨、人聲如沸胯陋。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 30,199評(píng)論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)遏乔。三九已至,卻和暖如春发笔,著一層夾襖步出監(jiān)牢的瞬間盟萨,已是汗流浹背。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 31,418評(píng)論 1 260
  • 我被黑心中介騙來(lái)泰國(guó)打工了讨, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留捻激,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 45,401評(píng)論 2 352
  • 正文 我出身青樓前计,卻偏偏與公主長(zhǎng)得像胞谭,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子男杈,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,700評(píng)論 2 345

推薦閱讀更多精彩內(nèi)容