1、用户修改密码功能,用户修改密码的实现只能在登陆的情况下;管理员修改用户的所有信息功能,管理员可以修改用户的用户名与密码、博客的博文及博文的点击量;用户发表博文,用户登陆后可以在自己的博客中发表博文,同时也可以进行留言。查看精华帖,用户不论登陆与否,都可以查看精华帖(点击量最高的前 5 条);用户删除博文,用户登陆后可以删除自己的博文;用户发表添加分类,用户登陆后,当发表博文时,可以自定义添加分类。下面主要对博客的开发与设计进行了概述、系统开发环境、系统分析、设计与实现等的介绍。关键词:Python,Django,TinyMCE,JQuery,BootstrapAbstractCurrently
2、, the study of knowledge is very important and we do not want to rest on our laurels, but should be shared to all people, and now the study of knowledge is very convenient. Blog development and design will be able to achieve this function, the user Bowen, other users can see, and you also can record
3、 some important information.In software development activities, regardless of service, application development system development is still the subject of blog is such a B / S mode system. A huge blog management system for many users, providing many functions, such as providing user registration, use
4、r management, personal blog, Bowen, Bowen deleted, messages, and search Bowen and so on. The system uses the Django framework for development.This paper analyzes the technical principles related to implementation of the system and data design, system architecture gives the blog, and the structure an
5、d management module structure and design were divided. The system uses the popular B / S structure, through the use of Python, Django, TinyMCE, JQuery, Apache and Sqlite database software such as completion of the powerful features of the system design.The system completed the user registration feat
6、ure, users need to set up your own user name and password, and their basic information; user login function, the administrator back-log function, the user only enter the correct user name and password before you can log; user to modify the password function the user to modify the password can only b
7、e realized in the case of landing; administrator to modify the user all the information, the administrator can modify the users user name and password, and blog Bowen Bowen hits; user Bowen, user login in his blog Bowen, but can also be a message. View Digest posts, the user regardless of landing or
8、 not, you can view the essence of software (hits The top five); User deleted Bowen, user login can delete your own blog; User published to add categories, user login, when Bowen , you can add custom categories. Here on the blog mainly gives an overview of the development and design, system developme
9、nt environment, systems analysis, design and implementation of introduction.KeyWord: Python,Django,TinyMCE,JQuery,Bootstrap目录1 系统的相关概述11.1 Django 简介11.2 Bootstrap 简介11.3 JQuery 简介11.4 TinyMCE 简介11.5 Sqlite3 简介22 系统开发和环境介绍22.1 基本环境22.1.1 安装 Apache22.1.2 配置 Apache22.1.3 安装 Python32.1.4 安装 Django43 系统分
10、析43.1 开发背景43.2 系统功能需求分析53.3 需要实现的功能及功能模块53.3.1 用户注册53.3.2 用户登录53.3.3 修改用户密码53.3.4 查看博文53.3.5 发博文53.3.6 查看个人信息63.3.7 删除博文63.3.8 评论63.3.9 注销63.4 系统流程分析63.4.1 系统的功能图63.4.2 系统的用例图83.4.3 系统的流程图84 系统设计与实现94.1 数据库设计94.1.1 角色分析94.1.2 数据库建表(models)104.3 系统前台设计104.4 部分功能代码144.4.1 用户注册144.4.显示博文详细内容144.4.1 分页1
11、55 总结与展望166 参考文献171 概述1.1 Django 简介Django 是应用于 Web 开发的高级动态语言框架,最初起源于美国芝加哥的 Python 用户组,具有新闻从业背景的 Adrian Holovaty 是 Django 框架的主要开发者。在Adrian 的带领下,Django 小组致力于为 Web 开发者贡献一款高效完美的 Python 开发框架,并且在 BSD 开放源代码协议许可下授权给开发者自由使用。Django 拥有完善的模板机制、对象关系映射机制以及用于动态创建后台管理界面的功能,利用 Django,可以快速设计和开发具有 MVC 层次的 Web 应用。为了打消开
12、发者选用 Django 框架时的疑虑,首先分析一下 Django 引人注目的特性。在实体映射方面, Django 的对象相关映射机制帮助开发者在 Python 类中灵活定义数据模型,并且 Django具有功能丰富的动态数据库访问 API,可以大幅度简化书写 SQL 语句的繁杂工作。同时 Django 支持包括 Postgresql,MySql,Sqlite,Oracle 在内的多种后台数据库。Django 的 URL 分发设计的十分简洁美观,不会在链接中产生一大串杂乱且难以理解的字符。使用 Django 可扩展的内置模板,可以将模型层、控制层与页面模板完全独立开来进行编码。Django 还具有
13、自己的 Cache 系统,如果需要,也可以根据开发者的要求嵌套其他的 Cache 框架。1.2 Bootstrap 简介Bootstrap 是 Twitter 推出的一个开源的用于前端开发的工具包。它由 Twitter 的设计师 Mark Otto 和 Jacob Thornton 合作开发,是一个 CSS/HTML 框架。Bootstrap 提供了优雅的 HTML 和 CSS 规范,它即是由动态 CSS 语言 Less 写成。Bootstrap 一经推出后颇受欢迎,一直是 GitHub 上的热门开源项目,包括 NASA 的 MSNBC(微软全国广播公司)的Breaking News 都使用了
14、该项目。1.3 JQuery 简介JQuery 是继 prototype 之后又一个优秀的 Javascript 框架。它是轻量级的 js 库 ,它兼容 CSS3,还兼容各种浏览器(IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+),jQuery2.0 及后续版本将不再支持 IE6/7/8 浏览器。JQuery 使用户能更方便地处理 HTMLdocuments、events、实现动画效果,并且方便地为网站提供 AJAX 交互。JQuery 还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。JQuery 能够使用户的 html 页面保持代码和 html 内容分离,也就是说, 不用再在 html 里面插入一堆 js 来调用命令了,只需定义 id 即可。1.4 TinyMCE 简介TinyMCE 是一个轻量级的基于浏览器的所见即
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1