上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: from django.db import models# Create your models here.class Book(models.Model): id = models.AutoField(primary_key=True) #自增类型 title = models.CharField 阅读全文
posted @ 2022-07-07 21:56 呼长喜 阅读(89) 评论(0) 推荐(0)
摘要: from django.db import models# Create your models here.'''create table t1( name varchar (32) unique not null age int xxx double 8 2 )'''class Ncov(mode 阅读全文
posted @ 2022-07-07 21:02 呼长喜 阅读(52) 评论(0) 推荐(0)
摘要: """Django settings for mysite project.Generated by 'django-admin startproject' using Django 3.2.For more information on this file, seehttps://docs.dja 阅读全文
posted @ 2022-07-06 20:25 呼长喜 阅读(130) 评论(0) 推荐(0)
摘要: PyMySQL是从Python连接到MySQL数据库服务器的接口, 简单理解就是,Pymysql是python操作mysql数据库的三方模块。就是可以理解为可以在python中连接数据库写MySQL命令。 一 。Pymysql使用基本流程 1、要有mysql数据库 2、要有python 3、要有py 阅读全文
posted @ 2022-07-06 20:01 呼长喜 阅读(3014) 评论(0) 推荐(0)
摘要: <!doctype html><html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content=" 阅读全文
posted @ 2022-07-06 19:54 呼长喜 阅读(34) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-07-05 21:03 呼长喜 阅读(118) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-07-05 20:05 呼长喜 阅读(49) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-07-05 19:58 呼长喜 阅读(30) 评论(0) 推荐(0)
摘要: 执行用户:mysql 脚本内容: #! /bin/sh OSCheckCentOS8=`cat /etc/redhat-release 2>/dev/null |awk '{print $4}' |awk -F"." '{print $1}'`OSCheckSuse=`cat /etc/issue 阅读全文
posted @ 2022-07-03 19:00 呼长喜 阅读(37) 评论(0) 推荐(0)
摘要: 执行方式:sh scripts.sh scriptsfile="Linux_Memory.sh" check="failed/true" 脚本参数详解: scriptsfile="" zbx二次开发监控脚本 check="" failed(执行)true(查看) 脚本内容: #! /bin/sh s 阅读全文
posted @ 2022-07-03 18:14 呼长喜 阅读(154) 评论(0) 推荐(0)
摘要: 执行方式:sh scripts.sh hostname="TEST01" ip="198.145.0.122" check="failed/true" 脚本参数详解: hostname="" 执行主机的主机名 ip="" 执行主机的IP地址 check="" failed(执行)true(查看) 脚 阅读全文
posted @ 2022-07-03 17:40 呼长喜 阅读(58) 评论(0) 推荐(0)
摘要: 执行方式:sh scripts.sh hostname="TEST01" ip="198.145.0.122" check="failed/true" 脚本参数详解: hostname="" 执行主机的主机名 ip="" 执行主机的IP地址 check="" failed(执行)true(查看) 脚 阅读全文
posted @ 2022-07-03 17:21 呼长喜 阅读(257) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-07-02 19:42 呼长喜 阅读(89) 评论(0) 推荐(0)
摘要: <!doctype html><html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content=" 阅读全文
posted @ 2022-07-02 17:22 呼长喜 阅读(68) 评论(0) 推荐(0)
摘要: 链接地址: https://v3.bootcss.com/examples/theme/ view-source:https://v3.bootcss.com/examples/theme/ https://2019ncov.chinacdc.cn/JKZX/yq_20220401.json """ 阅读全文
posted @ 2022-07-02 16:03 呼长喜 阅读(66) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><h2>模板语法</h2><h3>变量渲染之深度查询</h3><p>姓名: {{ name }}</p><p>四 阅读全文
posted @ 2022-06-30 20:37 呼长喜 阅读(72) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-06-30 19:54 呼长喜 阅读(49) 评论(0) 推荐(0)
摘要: from django.shortcuts import render,redirect# Create your views here.from django.shortcuts import HttpResponsedef login(request): if request.method == 阅读全文
posted @ 2022-06-30 00:13 呼长喜 阅读(108) 评论(0) 推荐(0)
摘要: from django.shortcuts import render# Create your views here.from django.shortcuts import HttpResponsedef login(request): if request.method == "GET": # 阅读全文
posted @ 2022-06-28 20:28 呼长喜 阅读(40) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-06-26 20:02 呼长喜 阅读(34) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .now{ color: red; } h3{ text-align: center; } </style></head 阅读全文
posted @ 2022-06-26 17:41 呼长喜 阅读(11) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-06-25 18:35 呼长喜 阅读(46) 评论(0) 推荐(0)
摘要: """mysite URL ConfigurationThe `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/ 阅读全文
posted @ 2022-06-25 17:34 呼长喜 阅读(381) 评论(0) 推荐(0)
摘要: 1.下载pip命令 2.安装Django 3.创建Django项目 4.启动Django mysite项目 4.创建Django mysite项目子应用 python manage.py startapp 子应用名称 阅读全文
posted @ 2022-06-25 16:33 呼长喜 阅读(36) 评论(0) 推荐(0)
摘要: 前言 之前我们介绍过web应用程序和http协议,简单了解过web开发的概念。Web应用程序的本质 接收并解析HTTP请求,获取具体的请求信息 处理本次HTTP请求,即完成本次请求的业务逻辑处理 构造并返回处理结果——HTTP响应 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 阅读全文
posted @ 2022-06-25 16:00 呼长喜 阅读(293) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页