介绍:
本程序仅仅实现图书数据的增删查
树形结构如下
全部代码如下:
url:
from django.urls import path
from front import views as front_views
urlpatterns = [
path('', front_views.index,name='index'),
path('add/', front_views.add_book,name='add_book'),
path('detail/<int:book_id>/', front_views.book_detail,name='book_detail'),
path('del/', front_views.del_book,name='del_book'),
]
app的views;
from django.shortcuts import render,reverse,redirect
from django.db import connection
def get_corsor():
return connection.cursor()
def index(request):
cursor=get_corsor()
#cursor.execute("insert into book(id,name,author) values(1,'三国演义','罗贯中')")
'''第二使用该界面会错,这表明每次使用都使用非覆盖的方式进行填写'''
cursor.execute("select id,name,author from book")
books=cursor.fetchall()
return render(request,'index.html',context={"books":books})
def del_book(request):
if request.method == 'POST':
book_id = request.POST.get('book_id')
cursor = get_corsor()
cursor.execute("delete from book where id=%s" % book_id)
return redirect(reverse('index'))
else:
raise RuntimeError("删除图书的method错误!")
def add_book(request):
if request.method == 'GET':
return render(request, 'add_book.html')
else:
name = request.POST.get("name")
author = request.POST.get("author")
cursor = get_corsor()
cursor.execute("insert into book(id,name,author) values(null,'%s','%s')" % (name, author))
return redirect(reverse('index'))
def book_detail(request,book_id):
cursor=get_corsor()
cursor.execute("select id,name,author from book where id=%s" % book_id)
book=cursor.fetchone()#使用fetchone将会填充不了
return render(request, 'book_detail.html', context={"book":book})
setting:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeoAAACICAYAAAAoJqjfAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACrySURBVHhe7Z3rb1ZJ/cD9H9Y2BUKbXgJt05Y2vULaQmmblpaWQqEXSij3wrIue2FZ+LHCLpdlgWXvK7uummh8YeItURN8gZpoNCbGFxpiYmK8RaMmxo3GGN/N7/lMncM8p3POnKfX87TfF5/0nO93zsycme/Md25Pzyc++clPKkEQBEEQ0ok4akEQBEFIMeKoBUEQBCHFiKMWBEEQhBQjjloQBEEQUow46jzjt7/9rfrvf/+r4doVRhAEQ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svESX7/+9ejCQjR7coWXlFaVZYUHax1x8/i9vD5PRqPOxQlaaw6f6nfKFkpa6iHq/tNmKz37j9KvV7htbqlXfUJt68dqEqm+qcobxsdL1v1TtKykrlT7le/XutNqYcaLcnz0/sqAyl/aRTd46anBVCKOtzVXlqn+4bY5urdOyrVa9+u5xpy4JxSXRZZuGxhH3fgvJH51C7ZbNTp1NXPm48OUpSp+Gsl4K9k1sVxWby/SMa9/EDmeYOJaq/pPia1+52keurGT6lO9TL+zVgy3uX3hlfE6ZS/uYLxvU/wMTE4DMcW6zwAAAAABJRU5ErkJggg==" alt="" />
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'book_managr',
'USER':'root',
'PASSWORD':'',
'HOST':'127.0.0.1',
'PORT':'',
}
}
html:book_detail
{% extends 'base.html' %}
{% block content %}
<p>书名:{{ book.1}}</p>
<p>作者:{{ book.2 }}</p>
<form action="{% url 'del_book' %}" method="post">
<input type="hidden" name="book_id" value="{{ book.0 }}">
<input type="submit" value="删除按钮">
</form>
{% endblock %}
add
{% extends 'base.html' %}
{% block content %}
<form action="" method="post">
<table>
<tbody>
<tr>
<td>书名:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>作者:</td>
<td><input type="text" name="author"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="提交"></td>
</tr>
</tbody>
</table>
</form>
{% endblock %}
index
{% extends 'base.html' %}
{% block content %}
<table>
<thead>
<tr>
<th>序号</th>
<th>书名</th>
<th>作者</th>
</tr>
</thead>
<tbody>
{% for book in books %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{% url 'book_detail' book_id=book.0 %}">{{ book.1 }}</a></td>
<td>{{ book.2 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
base:
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图书管理系统</title>
<link rel="stylesheet" href="{% static 'front/base.css' %}">
</head>
<body>
<nav>
<ul class="nav">
<li><a href="/">首页</a></li>
<li><a href="{% url 'add_book' %}">发布图书</a></li>
</ul>
</nav>
{% block content %}{% endblock %}
</body>
</html>
css:base:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO0AAABpCAYAAADWbKRBAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAjDSURBVHhe7d1NbxNHHIBxPgD9HA2VWpVr1KQJBKG2olFegEPFiyJUAQntAURLK+y0HFBbJY0UixISUSRwEALUu/lwU8+uZz07+1977F2vPclz+CnsznqSA092YzLDiS++nFcAwkG0QGAqi/bx7rOM73+4K17bz/TsZVU7bKkPHz6o3fU58RrgqBprtNr63Z/F63tZqR+qVmNDHAOOur7RNptN9f79+1yvXr0SX+eSgvUhzXWr0VLN+mVxrChzF+cOjknVN9rrazfEWI1r19fE17mkIH1IcxEtjjOvx+P9gwMx2Gf7++L1EjfGB4/+jLjnXe48Olj9s6zWajXUzZlLncg21G6rpVqHm2pldq4dX3xsX3urfV7PEY8dqlq9kYzrbwKZ13Tmcr8GYJy8ol1aXhWjXVxeEa+X2CGu3bqTnNd/tsdc9hyGfac1d8ZslOm78fR6I7nGjJufi6cvbqqmjviiHuNOi8nm/UbU9s5OKtitrW3xujx2iIsr3Zj0n+0xlz2HIUVrRxYF6twl7euSO2070u4Y0SIM3tGeOXdevXv3Lgr27du30bF0XR47xFHcaf2iNWESLcLlHa1Wq29G0T6s1cXxXtwYh/2ZVusbbd7jcernXaJFmAaKdnb+rHq6txd9lMZ7kYL0Ic3VL9r4fBxu8qaS9EaUEK0+1v8OzBtRmFQDRVuEFKQPaS7gOKssWgDlIFogMEQLBIZogcAQLRAYogUCQ7RAYIgWCAzRAoEhWiAwwUUr/arjsBvE+bLX20rjZarycyFMlUb7/Pm/amn1kjjmS4pWG2aDOF9Ei0lSabRmAf323ztq4fxX4jX9SMH6kOaaBCwFxKDGEq2mF9I/+OVX8bpepCB9SHNNAqLFoMYWr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 65px;
overflow: hidden;
}
.nav li{
float: left;
list-style: none;
margin: 0 20px;
line-height: 65px;
}
.nav li a{
color: #fff;
text-decoration: none;
}
.nav li a:hover{
color: lightblue;
}
- [入门级] 基于 visual studio 2010 mvc4 的图书管理系统开发初步 (二)
[入门级] 基于 visual studio 2010 mvc4 的图书管理系统开发初步 (二) Date 周六 10 一月 2015 By 钟谢伟 Category website develop ...
- 简易版CMS后台管理系统开发流程
目录 简易版CMS后台管理系统开发流程 MVC5+EF6 简易版CMS(非接口) 第一章:新建项目 MVC5+EF6 简易版CMS(非接口) 第二章:建数据模型 MVC5+EF6 简易版CMS(非接口 ...
- Netty(四)基于Netty 的简易版RPC
3.1 RPC 概述 下面的这张图,大概很多小伙伴都见到过,这是 Dubbo 官网中的一张图描述了项目架构的演进过程 它描述了每一种架构需要的具体配置和组织形态.当网站流量很小时,只需一个应用,将所有 ...
- 进阶之路(中级篇) - 018 基于arduino的简易版智能衣架
一. 设备及要求 目的:制作一个可以自动根据事实的天气的状况进行对衣架上的衣服进行晾晒. 基础装置:可伸缩的晾衣架. 开发环境:Arduino1. 8.1 主控板:Arduino UNO 动力装 ...
- 学生管理系统(SSM简易版)总结
之前用 Servlet + JSP 实现了一个简易版的学生管理系统,在学习了 SSM 框架之后,我们来对之前写过的项目重构一下! 技术准备 为了完成这个项目,需要掌握如下技术: Java 基础知识 前 ...
- MVC5+EF6 简易版CMS(非接口) 第四章:使用业务层方法,以及关联表解决方案
目录 简易版CMS后台管理系统开发流程 MVC5+EF6 简易版CMS(非接口) 第一章:新建项目 MVC5+EF6 简易版CMS(非接口) 第二章:建数据模型 MVC5+EF6 简易版CMS(非接口 ...
- MVC5+EF6 简易版CMS(非接口) 第三章:数据存储和业务处理
目录 简易版CMS后台管理系统开发流程 MVC5+EF6 简易版CMS(非接口) 第一章:新建项目 MVC5+EF6 简易版CMS(非接口) 第二章:建数据模型 MVC5+EF6 简易版CMS(非接口 ...
- MVC5+EF6 简易版CMS(非接口) 第二章:建数据模型
目录 简易版CMS后台管理系统开发流程 MVC5+EF6 简易版CMS(非接口) 第一章:新建项目 MVC5+EF6 简易版CMS(非接口) 第二章:建数据模型 MVC5+EF6 简易版CMS(非接口 ...
- MVC5+EF6 简易版CMS(非接口) 第一章:新建项目
目录 简易版CMS后台管理系统开发流程 MVC5+EF6 简易版CMS(非接口) 第一章:新建项目 MVC5+EF6 简易版CMS(非接口) 第二章:建数据模型 MVC5+EF6 简易版CMS(非接口 ...
随机推荐
- net core天马行空系列:原生DI+AOP实现spring boot注解式编程
写过spring boot之后,那种无处不在的注解让我非常喜欢,比如属性注入@autowire,配置值注入@value,声明式事物@Transactional等,都非常简洁优雅,那么我就在想,这些在n ...
- Flink快速入门--安装与示例运行
flink是一款开源的大数据流式处理框架,他可以同时批处理和流处理,具有容错性.高吞吐.低延迟等优势,本文简述flink在windows和linux中安装步骤,和示例程序的运行. 首先要想运行Flin ...
- Python笔记_基础
1.注释 # 单行注释 """ 多行注释,一般用于类说明 """ 或 ''' 多行注释 ''' 2.工作日志 # TODO 说明性文字 记录 ...
- Nacos(九):Nacos集群部署和遇到的问题
前言 前面的系列文章已经介绍了Nacos的如何接入SpringCloud,以及Nacos的基本使用方式 之前的文章中都是基于单机模式部署进行讲解的,本文对Nacos的集群部署方式进行说明 环境准备 J ...
- C#数据结构_树
树的定义是递归的,用树来定义树.因此,树(以及二叉 树)的许多算法都使用了递归. 结点(Node):表示树中的数据元素. 结点的度(Degree of Node):结点所拥有的子树的个数. 树的度(D ...
- React之react-redux
react-redux相关概念及设计思想介绍 1.react-redux 将所有组件分为两大类 UI组件(负责UI的呈现) 和 容器组件(负责管理数据和逻辑). 2.UI组件特点 只负责UI的呈现,不 ...
- HTML 事件属性(摘自菜鸟教程)
HTML 事件属性 全局事件属性 HTML 4 的新特性之一是可以使 HTML 事件触发浏览器中的行为,比方说当用户点击某个 HTML 元素时启动一段 JavaScript. 如果你想学习更多关于事件 ...
- chrome取消安全模式
右键快捷方式,后面添加--disable-web-security --user-data-dir=E:\MyChromeDevUserData "D:\Program Files (x86 ...
- 学习 Nginx+IIS 分布式测试
首先,从Nginx官网(http://nginx.org/en/download.html)下载了一个Window版本,解压后如图: 修改conf文件夹里面的配置文件nginx.conf,默认的808 ...
- LeetCode探索初级算法 - 动态规划
LeetCode探索初级算法 - 动态规划 今天在LeetCode上做了几个简单的动态规划的题目,也算是对动态规划有个基本的了解了.现在对动态规划这个算法做一个简单的总结. 什么是动态规划 动态规划英 ...