会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pythoner_wl
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
10
11
12
13
14
15
16
17
18
···
34
下一页
2021年1月22日
nginx——部署前端
摘要: nginx容器前端文件目录必须为: /usr/share/nginx/html html下面是各种文件:js,css,index.html 等。 其他报错: js 找不到 解决:更改 vue 中,js 路径,使其符合实际情况 403 解决:index.html找不到,路径地址错了 nginx完整配置
阅读全文
posted @ 2021-01-22 15:55 pythoner_wl
阅读(200)
评论(0)
推荐(0)
2021年1月21日
转载——Django中使用django-apscheduler执行定时任务
摘要: Django中使用django-apscheduler执行定时任务 关于apscheduler使用,请参考文章 :python 定时任务APScheduler 使用介绍 安装模块 pip install django-apscheduler 使用 1. 在django项目修改settings.py文
阅读全文
posted @ 2021-01-21 17:16 pythoner_wl
阅读(608)
评论(0)
推荐(0)
2021年1月14日
docker 部署 思路
摘要: nginx + uwsgi + django 1 nginx 容器 :nginx服务 2 python3.6 容器:uwsgi + django服务 注意:端口映射 -p 80:80 -p 8000:8000 -p 外部访问:内部端口 注意:可以使用文件挂载,即修改容器外的文件,即修改容器内的文件,
阅读全文
posted @ 2021-01-14 11:23 pythoner_wl
阅读(78)
评论(0)
推荐(0)
2021年1月13日
mysql容器部署——必须制定root密码
摘要: docker run -itd --name mysql56 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=linde4396 mysql:5.6.50 挂载目录: -v docker外文件:docker内文件 docker run -itd --name mysql56
阅读全文
posted @ 2021-01-13 18:37 pythoner_wl
阅读(219)
评论(0)
推荐(0)
python 内存泄漏——使用pymssql模块的讨论 free(): corrupted unsorted chunks
摘要: 连接:https://github.com/pymssql/pymssql/issues/500
阅读全文
posted @ 2021-01-13 17:17 pythoner_wl
阅读(1390)
评论(0)
推荐(0)
Python的gc模块
摘要: 一.垃圾回收机制 Python中的垃圾回收是以引用计数为主,分代收集为辅。 1、导致引用计数+1的情况 对象被创建,例如a=23 对象被引用,例如b=a 对象被作为参数,传入到一个函数中,例如func(a) 对象作为一个元素,存储在容器中,例如list1=[a,a] 2、导致引用计数-1的情况 对象
阅读全文
posted @ 2021-01-13 17:00 pythoner_wl
阅读(346)
评论(0)
推荐(0)
使用多线程——线程池
摘要: from concurrent.futures import ThreadPoolExecutor threadPool = ThreadPoolExecutor(max_workers=10, thread_name_prefix="oss_")
阅读全文
posted @ 2021-01-13 13:01 pythoner_wl
阅读(75)
评论(0)
推荐(0)
sqlserver 数据库连接池
摘要: # -*- coding:utf-8 -*- import pymssql from DBUtils.PooledDB import PooledDB from log_maker import logger class Sql_conn: def __init__(self): # conn =
阅读全文
posted @ 2021-01-13 12:59 pythoner_wl
阅读(350)
评论(0)
推荐(0)
drf response——简单封装
摘要: """自定义response""" """status : 返回状态码,常量""" from common import status def unified_response(message='成功', code=status.OK, data=None): """自定义response""" r
阅读全文
posted @ 2021-01-13 12:57 pythoner_wl
阅读(70)
评论(0)
推荐(0)
邮箱找回密码实现
摘要: 邮箱找回密码实现 思路: 点击邮箱找回:前端给后端服务器发送请求 get:http://127.0.0.1:8000/api/v1/email?email=7777777777@qq.com 后端发送邮件:邮件内容包含修改密码页面的连接,url拼接:加密token(包含email信息) 邮件内点击连
阅读全文
posted @ 2021-01-13 12:01 pythoner_wl
阅读(466)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
34
下一页
公告