程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Django (II) exquisite blog building (15) project summary

編輯:Python

Preface

that 【 Exquisite blog construction 】 I simply finished the whole project , In fact, the realization of all functions is very basic , It's also relatively simple .

Another look Django The column has little reading , Although every time CSDN All pushed me up 【python Domain content list 】…,emm But I still want to write a summary in the end , Make an ending .

I will upload the source code to github:

  • git Address :

  • ps: In addition, if you want everyone to have access to your website , You can buy a server , I'm here to practice my hand , Will not open



One 、 Brief introduction of the project

The project is simply , Is based on Django frame , Make one Personal blog site . The background management system is directly used xadmin, The front desk has added two applications 【user】【article】, All operation functions related to users are uniformly written in user Next , The unity related to the article is written in article Next .

At present, the user module has been implemented

  • 【 User password / SMS verification code login 】
  • 【 User registration / Exit login / Retrieve password / Send Netease email 】
  • 【 User login blocking 】
  • 【 Profile page / Modify the information / Avatar storage seven cattle cloud 】
  • 【 About my page 】
  • 【 Message list / Add a message 】 etc.

The article module has been implemented

  • 【 Paged query of article list 】
  • 【 Article details / Comment on / Blogging 】 etc.

In addition, third-party access :

  • Seven cattle cloud storage
  • Netease Yunxin
  • NetEase mail box

Two 、 Project gains

Although this project is very simple , But in fact, I have stepped on many pits in the process of playing , It is also slowly adjusted

What about the whole project , I usually record one function blog

  • On the one hand , Mainly to record , Then look at the project in turn , Good combing , After all, they are written according to their own ideas .
  • On the other hand , It's also a sharing , Before, when I wanted to play a project , Search others Django project , I found that there is not a complete project , Or the layout is messy , Not suitable for reading .

What can you gain from it ?

1、 When it's down , You may be right Django-MTV framework Better understanding , From theory to practice

2、 Maybe it can improve your understanding of Third party development documentation Ability to read and use , Because the project has access to some third parties , for example : Qiniuyun / Netease Yunxin / Netease email, etc , You need to check their documents , Realization function .

3、 Improve Front end writing Ability , Although all the pages of this project are written very simply , Of course, if you feel ugly, you can adjust it to your aesthetic style , So it's a little helpful for your front-end ability .

  • Including first encapsulating a base.html, Then all other pages inherit this page , Realize the blocking of front-end page modules , Make the code look more portable and standard

3、 ... and 、 End of project

Last, last , If you encounter any problems , You can write to me privately or comment on my blog , I'll reply when I see
In addition, if you have any good suggestions, you can also comment

Next, I may consider playing a 【 Test platform 】 Project , Or write a blog about the framework


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved