随笔分类 - django框架基础
摘要:分页方法一: 安装:npm i element-ui -S 前端配置:import ElementUI from 'element_ui' import 'element-ui/lib/theme-chalk/index.css' Vue.use(ElementUI) <el-pagination
阅读全文
摘要:from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from .models import * from .
阅读全文
摘要:post请求在二级目录下的views.py文件中写入 from django.http import HttpResponse # Create your views here. a = {"name":"来了老弟","pwd":"老弟你真棒"} #声明全局变量 def indexb(request
阅读全文
摘要:1.get请求在二级目录下的views.py文件中写入 声明全局变量 c = "pp" d = "123" def indexa(request): if request.method == "GET": name = request.GET.get("name") pwd = request.GE
阅读全文
摘要:1.配置路由 : 在自己创建的django用户名中有urls.py这个文件在这个里面配置 from django.contrib import admin from django.urls import path from django.urls.conf import include urlpat
阅读全文

浙公网安备 33010602011771号