Skip to content
yidao620c edited this page Dec 8, 2014 · 3 revisions

Django1.7开发一个简单的博客系统


教程地址:

通过上面的教程已经搭建了一个具有基本功能的博客。

最近又持续不断的改进,争取能将整个完整功能全部加上。

  1. 页面美化,加入了自定义样式和最新BootStrap
  2. 文章评论功能,并且显示每篇文章的评论数
  3. 文章标签,侧边栏会显示标签云,具体还有一个实现标签云的算法
  4. 文章的分类目录
  5. 显示最新文章,最新评论
  6. 文章归档功能,按照月份归档
  7. 实现热门文章功能,根据点击率来排名
  8. 文章的分页显示
  9. 给文章评分,顶和踩
  10. 集成xadmin的后台管理系统,管理员维护博客。
  11. 自定义页面
  12. 引入富文本编辑器,让格式更漂亮,并支持代码高亮等功能
  13. 全面集成redis缓存系统,提升系统速度
  14. i18n国际化

master主分支刚刚和py27分支合并,目前发布版本为0.9.8, 不过发布正式1.0.0版本前还有一个重量级功能要实现:

  1. 全文搜索功能

在持续改进过程中,不断的总结学习django框架,QuerySet的熟练使用,模板,全局处理器,静态资源, 还有与django-xadmin的集成等等。引入redis缓存提升性能,因为点击率这些非常易变的应该要使用缓存。 总之,在实际开发过程中不断的总结才是最好的学习方法。

一个人毕竟精力有限,期待在GitHub上面找到合作者共同完善这个系统。可以fork这个工程然后提交Pull Requests。


演示地址(用户名/密码:admin/admin)

How to Contribute

You are welcome to contribute to mango-test as follow

  • add/edit wiki
  • report/fix issue
  • code review
  • commit new feature
  • add testcase

Meanwhile you'd better follow the rules below

  • It's NOT recommended to submit a pull request directly to master branch. develop branch is more appropriate
  • Follow common Java coding conventions
  • Put all Java class files under com.netease package
  • Add the following license in each Java class file

License

(The Apache License)

Copyright (c) 2013-2014 WinHong, Inc. and other contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.