python 全栈开发,Day77(图书管理系统)

不问归期 提交于 2021-01-07 09:40:40

<div id="cnblogs_post_body" class="blogpost-body"><h1 id="autoid-0-0-0">一、图书管理系统</h1> <p>完整代码链接:</p> <p><a href="https://github.com/py3study/bms_multi" target="_blank">https://github.com/py3study/bms_multi</a></p> <p>&nbsp;</p> <p>本项目使用session来实现一个简单的图书管理系统</p> <p>&nbsp;</p> <h2 id="autoid-1-0-0">未登录不允许访问后台:</h2> <p>直接访问后台页面,会有提示:</p> <p>http://127.0.0.1:8000/books</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204204869-605877362.png" alt=""></p> <h2 id="autoid-1-1-0">访问首页:</h2> <p>导航栏下面是一个轮播图</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204323225-1661640753.png" alt=""></p> <p>书籍是从数据库中读取的</p> <h2 id="autoid-1-2-0">注册页面</h2> <p>http://127.0.0.1:8000/reg/</p> <p>&nbsp;</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204400413-1869968904.png" alt=""></p> <p>注册账号之后,会跳转至登录页面</p> <h2 id="autoid-1-3-0">登录页面</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204436000-1753056352.png" alt=""></p> <h2 id="autoid-1-4-0">后台首页&nbsp;</h2> <p>右上角显示用户名,最后一次时间,注销</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204456870-966762246.png" alt=""></p> <p>默认是查看书籍</p> <h2 id="autoid-1-5-0">查看出版社</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204541617-1923222307.png" alt=""></p> <h2 id="autoid-1-6-0">查看作者</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204553248-855320986.png" alt=""></p> <h2 id="autoid-1-7-0">添加书籍</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204647718-243752444.png" alt=""></p> <p>提示添加成功</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204706397-1689521545.png" alt=""></p> <h2 id="autoid-1-8-0">添加作者</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204801246-9978593.png" alt=""></p> <h2 id="autoid-1-9-0">管理书籍</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204824679-745479476.png" alt=""></p> <h2 id="autoid-1-10-0">编辑书籍</h2> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204847415-92409475.png" alt=""></p> <p>&nbsp;提示修改成功</p> <p>&nbsp;<img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705204903179-168088873.png" alt=""></p> <h2 id="autoid-1-11-0">删除书籍</h2> <p><span style="color: #ff0000;"><strong>删除效果使用了sweetalert插件</strong></span></p> <p>官网地址如下:</p> <p><a href="http://mishengqiang.com/sweetalert/" target="_blank">http://mishengqiang.com/sweetalert/</a></p> <p>&nbsp;</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705205044237-1600274037.gif" alt=""></p> <h2 id="autoid-1-12-0">&nbsp;首页展示数据</h2> <p>访问首页:会展示数据库中的书籍</p> <p><img src="https://images2018.cnblogs.com/blog/1341090/201807/1341090-20180705205144514-2061750772.png" alt=""></p> <p>&nbsp;</p></div> <hr> <p>参考资料:</p> <p><a href="http://www.ziqiangxuetang.com/django/django-tutorial.html">Django 基础教程</a></p> <p><strong>转载声明:</strong><br>作者:<a href="https://www.cnblogs.com/xiao987334176/" target="_blank">肖祥</a><br>出处:&nbsp;<a href="https://www.cnblogs.com/xiao987334176/">https://www.cnblogs.com/xiao987334176/</a>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!