摘要:
<!DOCTYPE html><html><head><meta charset="utf-8"> <title></title> <!-- 1.导入vue --> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script 阅读全文
posted @ 2021-03-04 23:24
干it的小张
阅读(52)
评论(0)
推荐(0)
摘要:
from django.http import HttpResponsefrom django.shortcuts import renderfrom book.models import BookInfo# Create your views here.def index(request): # 阅读全文
posted @ 2021-03-04 23:15
干it的小张
阅读(137)
评论(0)
推荐(0)
摘要:
import jsonfrom datetime import datetimefrom django.http import HttpResponse, JsonResponsefrom django.shortcuts import render, redirectfrom django.url 阅读全文
posted @ 2021-03-04 23:13
干it的小张
阅读(105)
评论(0)
推荐(0)
摘要:
from django.conf.urls import urlfrom book.views import index, detail, set_cookie, get_cookie, set_session, get_sessionfrom book.views import BookView, 阅读全文
posted @ 2021-03-04 23:10
干it的小张
阅读(85)
评论(0)
推荐(0)
摘要:
from django.db import models# Create your models here."""1.定义模型类2.模型迁移 2.1 先生成迁移文件(不会在数据库中生成表,只会创建一个 数据表和模型的对应关系) python manage.py makemigratons 2.2 再 阅读全文
posted @ 2021-03-04 23:09
干it的小张
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号