自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 收藏
  • 关注

转载 pymysql 连接中断 pymysql.err.InterfaceError: (0, ‘‘)

pymysql.err.InterfaceError: (0, ‘’)

2020-10-12 11:39:23 362

转载 python 后台运行脚本

python 后台运行脚本

2020-10-10 16:25:33 261

转载 celery常用配置介绍

celery常用配置

2020-09-23 17:05:03 222

转载 运行supervisorctl错误提示【FATAL或BACKOFF 】Exited too quickly (process log may have details)问题总结

Exited too quickly (process log may have details)

2020-09-23 09:33:25 5342

转载 linux无法删除.user.ini文件的解决办法

linux 中删除ini 文件

2020-09-23 09:17:02 288

转载 django celery 内存泄漏问题

Celery在Django下使用的内存泄漏问题

2020-09-22 16:34:09 314 1

转载 python celery 序列化和反序列化问题

celery 序列化解决方法

2020-09-22 11:52:12 721

转载 var/run/supervisor.sock no such file

使用supervisorctl 命令报错unix:///var/run/supervisor.sock no such file时,往往是因为这个目录下的文件被清理了,只需要再新建一个空的文件然后修改一下权限即可 1. sudo touch /var/run/supervisor.sock 2. sudo chmod 777 /var/run/supervisor.sock 3. sudo service supervisor restart若此时运行supervisorct 报如下错误:s.

2020-09-21 12:05:50 1402

原创 django channels部署到服务器

环境 asgiref 3.2.0 channels 2.4.0 channels-redis 3.1.0 daphne 2.5.0 celery 4.3.0 redis-server 6.0.6 # redis 版本到 5.0.x 及以上否则会报错 aioredis.errors.ReplyError: ERR unknow

2020-09-19 11:34:36 1011

转载 Ubuntu 16.04 手动用 apt-get 在线安装 最新版redis

apt 安装redis

2020-09-19 10:59:45 257

转载 Python中保留两位小数不四舍五入

Python中保留两位小数不四舍五入

2020-09-11 10:38:29 2576

转载 python 列表遍历方式(含下标)

python enumerate 方法使用

2020-09-10 16:49:52 1390

转载 python *args参数 用法

python *args 作用

2020-09-10 16:30:41 327

转载 python join 函数

join(): 连接字符串数组。将字符串、元组、列表中的元素以指定的字符(分隔符)连接生成一个新的字符串

2020-09-10 09:44:38 92

转载 DRF参数参考

drf 参数说明

2020-09-09 11:37:53 508

转载 django Model详解

django model 详解

2020-09-08 18:03:38 75

转载 django related_name参数的意义

django related_name作用

2020-09-08 17:50:19 132

转载 django 2.2版本 mysql数据不兼容 AttributeError: ‘str‘ object has no attribute ‘decode‘

django AttributeError: ‘str’ object has no attribute ‘decode’

2020-09-08 17:28:53 178 1

转载 django的orm指定字段名,表名 verbose_name_plural

django verbose_name_plural 参数说明

2020-09-07 14:53:39 1161

转载 Django框架模型层常用字段和参数说明

django 框架 常用字段和参数说明

2020-09-07 14:46:19 77

原创 django 跨域出错 (corsheaders.E013) Origin ‘127.0.0.1:8080‘ in CORS_ORIGIN_WHITELIST is missing scheme or

django 解决跨域问题 启动报错 (corsheaders.E013) Origin '127.0.0.1:8080' in CORS_ORIGIN_WHITELIST is missing scheme or netloc HINT: Add a scheme (e.g. https://) or netloc (e.g. example.com)# 默认设置为CORS_ORIGIN_WHITELIST = ( '127.0.0.1:8080', 'localhost:8080'

2020-09-05 16:25:34 1967

原创 使用node 加载 vue 前端页面

可以使用前端node.js 提供的服务器live-server作为前端开发服务器使用安装node.js的版本控制工具nvm,在终端中执行# 方法一 1.curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash# 方法二 如果出现 Failed to connect to raw.githubusercontent.com port 443: 拒绝连接 可以试试方法二 2.git clon

2020-09-05 13:56:57 473

转载 linux 解决端口占用

linux 端口占用

2020-09-02 16:13:01 74

转载 python 判断字符串是否为int型和float型

判断字符串是否为int或者float

2020-09-02 14:35:51 2096

原创 国家统计局省市区数据

#!/usr/bin/python# -*- coding: UTF-8 -*-# 功能: 获取省市县数据# 版本:v1.1import importlibimport sysimport pymysqlimportlib.reload(sys)import requestsimport lxml.etree as etreeimport osclass chinese_city(): # 初始化函数 def __init__(self):

2020-08-22 15:43:03 715

转载 django restful 简单运用案列

django restful

2020-08-19 10:32:06 99

转载 python 三元运算符的运用

三元运算符

2020-08-18 17:53:53 95

转载 ubuntu 16.04 python 环境安装配置

python 环境安装

2020-08-15 16:07:02 124

转载 django 项目部署到阿里云

django 项目部署

2020-08-15 16:03:51 95

转载 vm虚拟机磁盘空间不足扩容方法

虚拟机磁盘空间不足

2020-08-15 16:00:58 837

转载 Ubuntu 16.04下安装VMware Tools(三行命令搞定)

安装VMware Tools

2020-08-15 15:54:11 159

转载 mysql 开始远程链接

mysql 5.7 远程链接方法

2020-08-15 15:45:22 48

转载 fiddler 过滤功能基本使用

过滤功能基本使用

2020-08-15 15:28:33 135

转载 爬虫 抓取App数据 安装夜神模拟器配合fiddler

安装fiddler

2020-08-15 15:24:13 362

转载 mongo数据库教程

mongo 基础语法

2020-08-15 15:19:26 76

转载 ubumtu 16.04 安装 Mongodb 3.4

mongodb 3.4安装

2020-08-15 15:13:59 62

转载 python 在字典中添加键值对的方法

python添加键值对

2020-08-15 15:09:35 3638

转载 python将字符串类型list转换成list

字符串类型list转换成list 如:’[1,2]'转成[1,2]

2020-08-13 14:18:38 1229

转载 优秀python博客链接

一位优秀的python大神

2020-08-13 10:40:58 101

转载 django Error: That port is already in use.

端口占用

2020-08-12 16:52:38 126

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除