上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 混淆文件下载地址: https://files.cnblogs.com/files/yimeimanong/Opy%E6%B7%B7%E6%B7%86.zip?t=1657695426 使用方法: 将混淆脚本(两个文件)放在需要混淆的工程根目录,然后执行opy.py文件。便会再工程跟目录的上一级目录 阅读全文
posted @ 2022-07-13 15:03 一枚码农 阅读(332) 评论(0) 推荐(0) 编辑
摘要: ``` [uwsgi] # 主进程 master = true # uwsgi 启动时所使用的地址与端口 http = 0.0.0.0:5000 # 项目位置 chdir = /data/PM/MyApp # python 启动程序文件 wsgi-file = app.py # python 程序内 阅读全文
posted @ 2022-07-13 10:56 一枚码农 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 配置 (settings.py) BASE_DIR = os.path.dirname(os.path.abspath(__file__)) LOG_DIR = os.path.join(BASE_DIR, "logs") if not os.path.exists(LOG_DIR): os.mak 阅读全文
posted @ 2022-07-01 19:03 一枚码农 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 下载安装jenkins(需要java环境) 新建项目 1.进入Jenkins管理首页,点击“新建Item”,输入项目名称,并选择 Freestyle project,点击确定按钮,进入项目配置界面。如下图所示 2.配置丢弃历史构建 3.配置根据tag发布 4.配置代码仓 5.触发构建配置 6.构建后 阅读全文
posted @ 2022-06-24 09:38 一枚码农 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 简单使用 1.下载 pip install django-filter 2.配置setting.py # setting.py # 需要先在应用里注册,像rest_framework INSTALLED_APPS = [ ... 'django_filters', # 需要注册应用, ] REST_ 阅读全文
posted @ 2022-04-29 17:03 一枚码农 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.自定义异常处理(custom_exception.py) 点击查看代码 # 自定义异常处理 from rest_framework.views import exception_handler from rest_framework.views import Response from rest 阅读全文
posted @ 2022-04-24 12:06 一枚码农 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://docker.easydoc.net/doc/81170005/cCewZWoN/lTKfePfP 测试项目目录 Dockerfile 文件 点击查看代码 # 建立python环境 FROM python:3.10 # 镜像作者 MAINTAINER Along # 设置 阅读全文
posted @ 2022-04-17 16:16 一枚码农 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 如下图 bfs代码 点击查看代码 """ bfs算法: 存储:将每个节点的相邻节点用key:value的形式存在字典中 遍历:从起点开始,先把起点(key)的值(value)取出,然后检查取出的值是否已经被执行过,没有则继续取(key)出其值(value)执行前边的步骤 """ graph = { 阅读全文
posted @ 2022-03-31 22:51 一枚码农 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 安装包 pip install celery==5.1.2 使用 官方文档:https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html 1.创建django项目,在项目与settings.py同级的的目录下创建cele 阅读全文
posted @ 2022-03-28 15:28 一枚码农 阅读(452) 评论(0) 推荐(0) 编辑
摘要: #### 封装 点击查看代码 ``` import functools import traceback from django_redis import get_redis_connection from requests.adapters import HTTPAdapter import re 阅读全文
posted @ 2022-03-24 11:02 一枚码农 阅读(62) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页