会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
破晓
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2018年7月4日
python 安装包制作
摘要: 1、 __init__.py 2、模块1 模块2 3、setup.py
阅读全文
posted @ 2018-07-04 21:10 破晓e
阅读(180)
评论(0)
推荐(0)
2018年6月28日
docker 安装与使用
摘要: 1、yum安装docker yum -y install docker 2、启动docker service docker start 3、检验运行状态 systemctl status docker 4、docker 搜索镜像 docker search 包名称 5、安装镜像 docker pul
阅读全文
posted @ 2018-06-28 18:22 破晓e
阅读(100)
评论(0)
推荐(0)
2018年6月22日
生产环境nginx上传文件报错413 Request Entity Too Large
摘要: 修改nginx配置文件/etc/nginx/nginx.conf 在http{}中添加 client_max_body_size 100m; 意思是设置上传文件大小
阅读全文
posted @ 2018-06-22 14:08 破晓e
阅读(197)
评论(0)
推荐(0)
2018年6月21日
uwsgi+nginx+django生产环境部署
摘要: 1、升级python到2.7版本 2、安装uwsgi 出现uwsgi未找到 yum groupinstall "Development tools"yum install zlib-devel bzip2-devel pcre-devel openssl-devel ncurses-devel sq
阅读全文
posted @ 2018-06-21 17:53 破晓e
阅读(174)
评论(0)
推荐(0)
2018年4月8日
sql 截取字符串
摘要: 1、从左开始截取字符串 left(str, length) 说明:left(被截取字段,截取长度) 例:select left(content,200) as abstract from my_content_t 2、从右开始截取字符串 right(str, length) 说明:right(被截取
阅读全文
posted @ 2018-04-08 11:32 破晓e
阅读(685)
评论(0)
推荐(0)
2018年3月20日
scrapy 是指user_agent
摘要: 1、倒入random模块 2、在settings文件中添加useragent列表
阅读全文
posted @ 2018-03-20 16:07 破晓e
阅读(150)
评论(0)
推荐(0)
scrapy 使用代理ip
摘要: 1、在settings文件中添加ip池 IPPOOL=['xxx.xx.xx.xx','xxx.xx.xxx.xx'] 2、在middleware文件中添加自己的代理ip类(首先需要导入ipPOOL,random模块) class Myproxymiddleware(object): def __i
阅读全文
posted @ 2018-03-20 15:50 破晓e
阅读(357)
评论(0)
推荐(0)
2018年3月15日
django admin后台设置
摘要: #encoding:utf-8 from django.contrib import admin from son10.models import * # Register your models here. class testadmin(admin.ModelAdmin): #设置要显示在列表中的字段 list_display = ['name','pwd'] #分...
阅读全文
posted @ 2018-03-15 18:27 破晓e
阅读(157)
评论(0)
推荐(0)
django 导入数据库
摘要: python manage .py makemigrations appname python manage.py migrate
阅读全文
posted @ 2018-03-15 16:42 破晓e
阅读(105)
评论(0)
推荐(0)
django admin后台显示中文
摘要: 在settings中设置 LANGUAGE_CODE = ‘zh-Hans’
阅读全文
posted @ 2018-03-15 16:39 破晓e
阅读(132)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告