posted @ 2025-11-18 16:06
个人记录
阅读(4)
推荐(0)
摘要:
setting.py: REST_FRAMEWORK = { 'DEFAULT_FILTER_BACKENDS': [ 'django_filters.rest_framework.DjangoFilterBackend', "rest_framework.filters.SearchFilter"
阅读全文
posted @ 2025-11-18 15:01
个人记录
阅读(5)
推荐(0)
摘要:
安装 pip install django-filter 注册 setting.py里install_apps 加入django_filters 完成filter筛选类 新建filter.py文件,model的三个类建立对应的筛选类。 在view里添加筛选类
阅读全文
posted @ 2025-11-14 16:17
个人记录
阅读(5)
推荐(0)
摘要:
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
个人记录
阅读(7)
推荐(0)
摘要:
环境: windows上通过wmware安装的ubuntu30. 一 、设置环境 1. 设置python 发现可以执行python3,不能python,先设置下。 echo "alias python=python3" >> ~/.bashrcsource ~./bashrc 2. 安装Django
阅读全文
posted @ 2025-11-11 16:42
个人记录
阅读(6)
推荐(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
个人记录
阅读(33)
推荐(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
个人记录
阅读(25)
推荐(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
个人记录
阅读(33)
推荐(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
个人记录
阅读(23)
推荐(0)
摘要:
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple pip install jieba
阅读全文
posted @ 2024-06-17 19:49
个人记录
阅读(26)
推荐(0)