上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 38 下一页
摘要: 其意思是:yum中不存在这个包 所以解决办法是 1.更新yum 更新yum仓库: yum -y update 2.查看包名在yum中是什么 yum search all crontabs 阅读全文
posted @ 2019-12-05 23:04 Mr_Riven 阅读(1065) 评论(0) 推荐(0)
摘要: 一对多关联2张表的方法 from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey class PricePol 阅读全文
posted @ 2019-12-05 16:07 Mr_Riven 阅读(294) 评论(0) 推荐(0)
摘要: 1.创建一个视图 from rest_framework import exceptions from app01 import models from rest_framework.authentication import BaseAuthentication class TokenAuth(B 阅读全文
posted @ 2019-12-05 13:29 Mr_Riven 阅读(274) 评论(0) 推荐(0)
摘要: 功能: // 页面跳转后发送ajax请求给后端 请求详细信息 //点击课程推荐跳转到推荐课程详细 // 页面刚加载立即执行函数 = mounted <template> <div> <img :src="detail.img" /> <h1>{{ detail.title }}</h1> <h3>{ 阅读全文
posted @ 2019-12-05 10:27 Mr_Riven 阅读(1099) 评论(0) 推荐(0)
摘要: 1.换成下面这个网址 https://github.com/pypa/pip/issues/5236 2.下载最新的pip 3. 然后换回 https://pypi.org/simple/ 阅读全文
posted @ 2019-12-05 09:36 Mr_Riven 阅读(197) 评论(0) 推荐(0)
摘要: outer.beforeEach()一般用来做一些进入页面的限制。 比如没有登录, 就不能进入某些页面,只有登录了之后才有权限查看某些页面。。。说白了就是路由拦截。第一步 规定进入路由需不需要权限 @/router/index.js import A from '@/components/a' { 阅读全文
posted @ 2019-12-04 17:35 Mr_Riven 阅读(14538) 评论(0) 推荐(0)
摘要: 前端(1) post methods:{ doLogin:function(){ this.username this.password this.$axios.request({ url:'http://127.0.0.1:8000/api/v1/auth/', method:'POST', da 阅读全文
posted @ 2019-12-04 13:28 Mr_Riven 阅读(136) 评论(0) 推荐(0)
摘要: <template> <div> <img :src="detail.img" /> <h1>{{ detail.title }}</h1> <h3>{{detail.slogon }}</h3> <h5>{{ detail.level }}</h5> <p>{{ detail.why }}</p> 阅读全文
posted @ 2019-12-04 11:34 Mr_Riven 阅读(1346) 评论(0) 推荐(0)
摘要: 1. 建立在tcp之上 2.一次请求一次响应然后断开连接(无状态短连接) 请求和响应 发送: 请求头 \r\n\r\n 请求体 host:www.baidu.com\r\n\ content-type:application/json \r\n\r\n请求体 响应:响应头\r\n\r\n响应体 阅读全文
posted @ 2019-12-04 08:11 Mr_Riven 阅读(427) 评论(0) 推荐(0)
摘要: 方案 一 1.昨天碰到一个错误,linux下输入命令:service iptables restart时,总会报下面一个提示很简单,这句话的意思就是让你重定向到systemctl然后再启用,白话就是说用systemctl方式启动 解决方法:输入 systemctl start iptables这个时 阅读全文
posted @ 2019-12-03 23:28 Mr_Riven 阅读(9394) 评论(0) 推荐(1)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 38 下一页