随笔分类 -  Django框架

摘要:from django.db import models# Create your models here.class Book(models.Model): title = models.CharField(max_length=32) price = models.DecimalField(ma 阅读全文
posted @ 2022-07-27 21:29 呼长喜 阅读(105) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponse,redirectfrom book.models import Bookfrom django.urls import reverseimport datetime# Create your views 阅读全文
posted @ 2022-07-24 20:40 呼长喜 阅读(63) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponse,redirectfrom book.models import Bookfrom django.urls import reverseimport datetime# Create your views 阅读全文
posted @ 2022-07-23 18:29 呼长喜 阅读(41) 评论(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-23 18:02 呼长喜 阅读(26) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponsefrom book.models import Bookimport datetime# Create your views here.def add_book(request): if request. 阅读全文
posted @ 2022-07-17 18:18 呼长喜 阅读(98) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponsefrom book.models import Bookimport datetime# Create your views here.def add_book(request): if request. 阅读全文
posted @ 2022-07-11 19:06 呼长喜 阅读(159) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponsefrom book.models import Bookimport datetime# Create your views here.def add_book(request): if request. 阅读全文
posted @ 2022-07-10 20:42 呼长喜 阅读(28) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponsefrom book.models import Bookimport datetime# Create your views here.def add_book(request): if request. 阅读全文
posted @ 2022-07-09 21:28 呼长喜 阅读(112) 评论(0) 推荐(0) 编辑
摘要:from django.shortcuts import render,HttpResponsefrom book.models import Bookimport datetime# Create your views here.def add_book(request): #添加书籍 # 方式1 阅读全文
posted @ 2022-07-08 18:47 呼长喜 阅读(202) 评论(0) 推荐(0) 编辑
摘要: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 呼长喜 阅读(80) 评论(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 呼长喜 阅读(46) 评论(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 呼长喜 阅读(118) 评论(0) 推荐(0) 编辑
摘要:PyMySQL是从Python连接到MySQL数据库服务器的接口, 简单理解就是,Pymysql是python操作mysql数据库的三方模块。就是可以理解为可以在python中连接数据库写MySQL命令。 一 。Pymysql使用基本流程 1、要有mysql数据库 2、要有python 3、要有py 阅读全文
posted @ 2022-07-06 20:01 呼长喜 阅读(2967) 评论(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 呼长喜 阅读(27) 评论(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 呼长喜 阅读(109) 评论(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 呼长喜 阅读(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-07-05 19:58 呼长喜 阅读(25) 评论(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 呼长喜 阅读(81) 评论(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 呼长喜 阅读(60) 评论(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 呼长喜 阅读(56) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示