摘要:
1. 安装 pip install djangorestframework 2. 引入 setting.py 的INSTALLED_APPS里添加‘rest_framework’ 3.开始使用(固定3步骤) 1> 序列化 写serializer.py 2> 视图 view.py 3> 路由 urls
阅读全文
posted @ 2025-11-14 14:20
个人记录
阅读(1)
推荐(0)
摘要:
环境: windows上通过wmware安装的ubuntu30. 一 、设置环境 1. 设置python 发现可以执行python3,不能python,先设置下。 echo "alias python=python3" >> ~/.bashrcsource ~./bashrc 2. 安装Django
阅读全文
posted @ 2025-11-11 16:42
个人记录
阅读(2)
推荐(0)
摘要:
原地址在这里,为了避免遗失,再记录一下: https://mbd.baidu.com/newspage/data/dtlandingsuper?nid=dt_4786011801109472039&sourceFrom=search_a 1. w+r : powershell 2. pshell :
阅读全文
posted @ 2025-02-19 10:25
个人记录
阅读(29)
推荐(0)
摘要:
1. 安装 kubectl create -f samples/addons/ #安装这个目录下的所有插件 // kubectl create -f samples/addons/kiali.yaml //kubectl create -f samples/addons/jaeger.yaml 2.
阅读全文
posted @ 2024-08-15 14:48
个人记录
阅读(19)
推荐(0)
摘要:
去看k8s配套的istio的版本 https://istio.io/latest/docs/releases/supported-releases/#support-status-of-istio-releases 1. 下载安装包 https://github.com/istio/istio/re
阅读全文
posted @ 2024-08-09 10:55
个人记录
阅读(29)
推荐(0)
摘要:
pip install pandas import pandas as pd execel_path = 'xxxx\\xxx\\xxx' house=pd.read_excel(excel_path) print(house.shape) # 通过shape关键字可以得到excel有多少行多少列
阅读全文
posted @ 2024-06-20 15:32
个人记录
阅读(17)
推荐(0)
摘要:
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple pip install jieba
阅读全文
posted @ 2024-06-17 19:49
个人记录
阅读(14)
推荐(0)
摘要:
ad-hoc:临时命令 示例:ansible groups -m command -a ' df -h' register: task执行的任务结果存储在某个变量中,便于后续引用。 facts:用来自动采集“被控主机”自身状态信息。 when条件语句:针对task任务判断 tag:指定playboo
阅读全文
posted @ 2024-04-17 20:18
个人记录
阅读(19)
推荐(0)
摘要:
安装git yum install -y git
阅读全文
posted @ 2024-04-14 21:54
个人记录
阅读(12)
推荐(0)
摘要:
推荐原生模块:大部分幂等性,能重复执行。 常看所有模块:3k个 https://docs.ansible.com/ansible/2.9/modules/list_of_all_modules.html 找关键字 常见重要模块: service selinux hosname file copy c
阅读全文
posted @ 2024-04-14 21:31
个人记录
阅读(16)
推荐(0)