摘要
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
根據(jù)官網(wǎng)的介紹我們知道:Django是一個(gè)開(kāi)放源代碼的Python Web框架,可以讓我們快速的開(kāi)發(fā)出實(shí)用的項(xiàng)目裳朋。它是在快節(jié)奏的新聞編輯室環(huán)境中開(kāi)發(fā)的,它旨在使常見(jiàn)的Web開(kāi)發(fā)任務(wù)變得快速而容易,而不需要重新發(fā)明輪子载绿。主要的是它集成了后臺(tái)奥务,不需要自己再額外開(kāi)發(fā)后臺(tái)乡括,專注業(yè)務(wù)邏輯的開(kāi)發(fā)瞭吃。
說(shuō)明
作為Django的初始學(xué)習(xí)嗜憔,這里拿開(kāi)發(fā)一個(gè)簡(jiǎn)單的博客
開(kāi)始。
在項(xiàng)目中前端采用bootstrap框架
便锨,博客編寫采用Markdown
的方式,保存在MySQL
數(shù)據(jù)庫(kù)中我碟,最終通過(guò)通過(guò)Python讀取之后用misaka
模塊做Markdown到HTML的解析
關(guān)于Markdown轉(zhuǎn)HTML模塊的技術(shù)選型放案,對(duì)比了Python的一下模塊,最終發(fā)現(xiàn)misaka是最快的
- python-markdown
- python-markdown2
- mistune
- misaka
最終的項(xiàng)目效果圖如下: