構建博客應用程序
0-初始提交
創建博客應用程序
1-建築郵政模型
2-創建管理站點
3-自定義模型管理器
4-建築清單和詳細信息視圖
5-創建視圖模板
6-添加分頁
7-使用基於分類的視圖的分頁
具有高級功能的增強博客
與Django發送郵件
8-視圖中的django形式
9-與Django一起發送電子郵件
添加評論系統
10-型號和管理員評論
11-創建Modelfrom&Handel
12-在發布詳細模板上添加評論
添加標籤功能
13-添加標籤以使用Django -Taggit發帖
14-通過相似性檢索帖子
擴展博客應用程序
創建自定義模板標籤和過濾器
15-使用simple_tag的total_tag
16- show_latest_post使用包含_tag
17-使用simple_tag
使用PostgreSQL實施全文搜索
20-建立搜索視圖
21-蒸和排名結果
22-加權查詢
Ckeditor
23-添加ckeditor
如何克隆項目
首先安裝份量
- 下載並安裝Python最新版本(如果沒有)
- 下載並安裝git(如果沒有)
- 下載並安裝PostgreSQL數據庫下載並創建密碼,而安裝過程默認名稱和用戶名是Postgres
命令
- CD桌面
- Virtualenv博客
- CD博客
- 。 scripts activate
- mkdir src && cd src
- git克隆https://github.com/learnwithcode/building-a-blog-application.git。 <=通知包括期限
- pip install -r要求.txt
打開settings.py在src/ mysite/ and uncomement postgres數據庫設置中
- python manage.py遷移
- python manage.py createSuperuser
- python manage.py loaddata博客/fixtures/post.json
- python manage.py loaddata博客/fixtures/tag.json
- python manage.py collectstatic
- python manage.py runserver