基于Python的博客设计与开发毕业设计

上传人:汽*** 文档编号:565041924 上传时间:2023-05-14 格式:DOC 页数:22 大小:2.29MB
返回 下载 相关 举报
基于Python的博客设计与开发毕业设计_第1页
第1页 / 共22页
基于Python的博客设计与开发毕业设计_第2页
第2页 / 共22页
基于Python的博客设计与开发毕业设计_第3页
第3页 / 共22页
基于Python的博客设计与开发毕业设计_第4页
第4页 / 共22页
基于Python的博客设计与开发毕业设计_第5页
第5页 / 共22页
点击查看更多>>
资源描述

《基于Python的博客设计与开发毕业设计》由会员分享,可在线阅读,更多相关《基于Python的博客设计与开发毕业设计(22页珍藏版)》请在金锄头文库上搜索。

1、摘要目前,知识的学习十分的重要,我们要做到的不是固步自封,而是应该共享给所有的人,现在知识的学习还是很不方便。博客的开发与设计就能够实现该功能,用户发表博文后,其他用户可以看到,同时用户也可以记录一些重要的信息等。在软件开发活动中,无论何种服务,应用系统的开发仍然是开发的主题,博客就是这样一个B/S模式的系统。一个庞大的博客管理系统面向的用户很多,提供的功能也很多,如提供用户注册、用户管理、个人博客、发表博文、删除博文、留言、以及搜索博文等。本系统采用了Django框架进行开发。本文主要分析了该系统实现的相关技术原理与数据设计,给出了博客的系统架构,并对架构及管理模块结构作了划分及设计。本系统

2、采用了当前流行的B/S 结构,通过运用Python、Django 、TinyMCE、JQuery、Apache和Sqlite数据库等软件的强大功能完成了该系统的设计。本系统完成了用户注册功能,用户需要设定自己的用户名和密码以及自己的基本信息;用户登录功能、管理员后台登录功能,用户只有输入正确的用户名、密码才可以登录;用户修改密码功能,用户修改密码的实现只能在登陆的情况下;管理员修改用户的所有信息功能,管理员可以修改用户的用户名与密码、博客的博文及博文的点击量;用户发表博文,用户登陆后可以在自己的博客中发表博文,同时也可以进行留言。查看精华帖,用户不论登陆与否,都可以查看精华帖(点击量最高的前5

3、条);用户删除博文,用户登陆后可以删除自己的博文;用户发表添加分类,用户登陆后,当发表博文时,可以自定义添加分类。下面主要对博客的开发与设计进行了概述、系统开发环境、系统分析、设计与实现等的介绍。关键词:Python,Django,TinyMCE,JQuery,BootstrapAbstractCurrently, 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

4、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 some important information.In software development activities, regardless of service, application development system development is still the

5、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, user management, personal blog, Bowen, Bowen deleted, messages, and search Bowen and so on. The system uses the Django framework for development.T

6、his paper analyzes the technical principles related to implementation of the system and data design, system architecture gives the blog, and the structure and management module structure and design were divided. The system uses the popular B / S structure, through the use of Python, Django, TinyMCE,

7、 JQuery, Apache and Sqlite database software such as completion of the powerful features of the system design.The system completed the user registration feature, users need to set up your own user name and password, and their basic information; user login function, the administrator back-log functio

8、n, 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 be realized in the case of landing; administrator to modify the user all the information, the administrator can modify the users user name and p

9、assword, 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 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

10、categories, user login, when Bowen , you can add custom categories. Here on the blog mainly gives an overview of the development and design, system development environment, systems analysis, design and implementation of introduction.KeyWord: Python,Django,TinyMCE,JQuery,Bootstrap目录1系统的相关概述11.1Django

11、简介11.2Bootstrap 简介11.3JQuery简介11.4TinyMCE简介11.5 Sqlite3简介.22系统开发和环境介绍12.1基本环境22.1.1安装Apache22.1.2配置Apache22.1.3安装Python32.1.4安装Django43系统分析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系统的用例图8

12、3.4.3系统的流程图84系统设计与实现94.1数据库设计94.1.1角色分析94.1.2数据库建表(models)104.3系统前台设计104.4部分功能代码144.4.1用户注册144.4.显示博文详细内容144.4.1分页155总结与展望166参考文献171概述1.1 Django简介Django 是应用于 Web 开发的高级动态语言框架,最初起源于美国芝加哥的 Python 用户组,具有新闻从业背景的 Adrian Holovaty 是 Django 框架的主要开发者。在 Adrian 的带领下,Django 小组致力于为 Web 开发者贡献一款高效完美的Python 开发框架,并且在

13、 BSD 开放源代码协议许可下授权给开发者自由使用。Django 拥有完善的模板机制、对象关系映射机制以及用于动态创建后台管理界面的功能,利用 Django,可以快速设计和开发具有 MVC 层次的 Web 应用。为了打消开发者选用 Django 框架时的疑虑,首先分析一下 Django 引人注目的特性。在实体映射方面,Django 的对象相关映射机制帮助开发者在 Python 类中灵活定义数据模型,并且Django 具有功能丰富的动态数据库访问 API,可以大幅度简化书写 SQL 语句的繁杂工作。同时 Django 支持包括 Postgresql,MySql,Sqlite,Oracle 在内的

14、多种后台数据库。 Django 的 URL 分发设计的十分简洁美观,不会在链接中产生一大串杂乱且难以理解的字符。使用 Django 可扩展的内置模板,可以将模型层、控制层与页面模板完全独立开来进行编码。Django 还具有自己的 Cache 系统,如果需要,也可以根据开发者的要求嵌套其他的 Cache 框架。1.2 Bootstrap简介Bootstrap是Twitter推出的一个开源的用于前端开发的工具包。它由Twitter的设计师Mark Otto和Jacob Thornton合作开发,是一个CSS/HTML框架。Bootstrap提供了优雅的HTML和CSS规范,它即是由动态CSS语言L

15、ess写成。Bootstrap一经推出后颇受欢迎,一直是GitHub上的热门开源项目,包括NASA的MSNBC(微软全国广播公司)的Breaking News都使用了该项目。 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使用户能更方便地处理HTML documents、events、实现动画效果,并且方便地为网站提供AJAX交互。JQuery还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。JQuery能够使用户的html页面保持代码和html内容分离,也就是说,不用再在html里面插入一堆js来调用命令了,只需定义id即可。1.4 T

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 机械/制造/汽车 > 制造加工工艺

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号