摘要:
frp安装使用 frp服务端 >公网服务器端ip:121.4.3.1 frp客户端 >远程笔记本ip:192.168.1.10 在公网服务器生成私钥登陆,crt加载key.pem用于全局回话 frp服务端 wget https://github.com/fatedier/frp/releases/d 阅读全文
摘要:
编辑 Django从入门到放弃 - 刘清政 - 博客园 python/Django-rest-framework框架/11-Book系列多表群操作 | Justin-刘清政的博客 不使用django自带的项目名+表名,自定义数据库表名 class MESSAGE_PROCESS_CHANNEL(): 阅读全文
摘要:
编辑 使用redis缓存 缓存使用:要额外安装 django-redis # 1.将缓存存储位置配置到redis中:settings.py CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": 阅读全文
摘要:
Elasticsearch 解决集群red或者yellow问题 检查集群状态, 查看是否有节点丢失, 有多少分片无法分配 GET _cluster/health 查看索引级别, 找到红色的索引 GET _cluster/health?level=indices explain变红的原因 GET /_ 阅读全文
摘要:
from django.shortcuts import render # Create your views here. from django.http import HttpResponse,JsonResponse from django.views import View import j 阅读全文
摘要:
编辑 安装redis 安装nginx 前端 前端文件打包 将前端目录迁移到项目中 1)项目目录下没有 static 文件夹需要新建 >: mkdir /home/project/luffyapi/luffyapi/static 2)完成静态文件迁移 >: python /home/project/l 阅读全文
摘要:
编辑 安装redis ubuntu安装redis Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server._个人博客-CSDN博客 #celery Cele 阅读全文
摘要:
编辑 Kubernetes Network Course FAQ · 语雀 ENsp CRT 可以连到ensp里的路由器里,端口是打开设备设置后的串口号 进入路由器命令行: system-view sysname AR1 路由器改名 Linux kernel > 4.4, centos versio 阅读全文
摘要:
Django FieldDoesNotExist 导入错误 django项目改名 python - django.core.exceptions.ImproperlyConfigured: The included URLconf does not appear to have any patter 阅读全文
摘要:
django——url(路由)配置 作者:@huang-yc 本文为作者原创,转载请注明出处:https://www.cnblogs.com/huang-yc/p/9651162.html URL是Web服务的入口,用户通过浏览器发送过来的任何请求,都是发送到一个指定的URL地址,然后被响应。 在D 阅读全文