随笔分类 - django
图书的增删改查
    
摘要:from django.utils.deprecation import MiddlewareMixinfrom django.shortcuts import render,redirectclass MyMiddleware(MiddlewareMixin): def process_reque
        阅读全文
                
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>图书馆</title></head><style>input[type=text], select { width: 100%; padding: 12px 20px; margin: 8
        阅读全文
                
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style>body{background-image:url('/static/img/21.jpeg');} .button { 
        阅读全文
                
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>注册</title> 
        阅读全文
                
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>图书馆</title></head><style>input[type=text], select { width: 100%; padding: 12px 20px; margin: 8
        阅读全文
                
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style>body{background-image:url('/static/img/21.jpeg');} .button { 
        阅读全文
                
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>登录</title> 
        阅读全文
                
摘要:from django.shortcuts import render,redirectfrom firstapp import models# Create your views here.from firstapp.models import UserInfodef fristhtml(requ
        阅读全文
                
摘要:from django.db import models# Create your models here.class UserInfo(models.Model): name=models.CharField(verbose_name="姓名",max_length=20) pwd=models.
        阅读全文
                
摘要:"""URL configuration for myproject project.The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.co
        阅读全文
                
摘要:"""Django settings for myproject project.Generated by 'django-admin startproject' using Django 4.2.2.For more information on this file, seehttps://doc
        阅读全文
                
摘要:创建:django-admin.py startproject xxxapp创建:python manage.py startapp xxx启动:python3 manage.py runserver数据库:python3 manage.py makemigrations python3 manag
        阅读全文
                
                    
                
浙公网安备 33010602011771号