- 博客(11)
- 收藏
- 关注
原创 github pages 搭建个人博客
github pages 搭建个人博客 登录github创建个人仓库 将远程仓库clone到本地 设置远程仓库 新建测试主页 在本地仓库文件夹下新建 index.html <!DOCTYPE html> <html> <head></head> <body> <p>hello, git page!...
2020-04-10 09:49:10
312
原创 GenericViewSet配合扩展类的使用
GenericViewSet配合扩展类的使用 urls.py from django.conf.urls import url, include from rest_framework_extensions.routers import ExtendedSimpleRouter from .views import CompetitionViewSet router = ExtendedSi...
2020-02-29 22:13:10
565
原创 XAdmin
XAdmin 下载 git clone git@github.com:sshwsfc/xadmin.git 基本使用 项目名称为 kobe 将xadmin文件夹复制到django项目中 ├── kobe │ ├── __init__.py │ ├── error_handler.py │ ├── middleware.p...
2020-02-29 21:54:39
350
原创 爬虫 cookies 操作
爬虫 cookies 操作 requests import requests from requests.cookies import RequestsCookieJar session = requests.session() driver_cookies = [{'domain': 'web.immomo.com', 'httpOnly': False, 'name': '111', 'pat...
2019-11-05 21:25:09
241
转载 Hadoop之Unable to load native-hadoop library问题解决
Hadoop之Unable to load native-hadoop library问题解决 https://www.jianshu.com/p/f25a0caafcc6
2019-07-23 18:09:11
391
原创 centos安装jdk后,没有/lib/ld-linux.so.2
centos安装jdk后,没有/lib/ld-linux.so.2 环境: centos 7 jdk1.8.0_211 问题: [外链图片转存失败(img-m69i0PJM-1562143228650)(file:///C:\Users\ASUS\AppData\Roaming\Tencent\Users\875698429\TIM\WinTemp\RichOle\M6IQQ{TQNG}_8K...
2019-07-03 16:41:58
206
原创 uwsgi error while loading shared libraries libpcre
uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 环境: Ubuntu / 14.04.1 64位 python 3.6 错误: uwsgi: error while loading shared librari...
2019-05-29 11:05:05
800
原创 CondaHTTPError HTTP 404 NOT FOUND for url httpsmirrors
CondaHTTPError: HTTP 404 NOT FOUND for url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch/repodata.json 环境: Ubuntu / 14.04.1 conda 4.5.12 错误: 今天用conda创建虚拟环境报这个错误: Solving environment...
2019-05-29 09:58:37
6514
原创 djangopython manage
django:python manage.py runserver报错 环境: python 3.6 django 2.2 错误信息: Watching for file changes with StatReloader Exception in thread Thread-1: Traceback (most recent call last): File "/Users/soft...
2019-05-23 15:14:13
568
原创 Navicat 连接mysql报错: caching_sha2_password’ cannot be loaded
Navicat 连接mysql报错:caching_sha2_password’ cannot be loaded 环境: macPro mysql 8.0.15 解决: ALTER USER "root"@"localhost" IDENTIFIED WITH mysql_native_password by "root密码"; FLUSH PRIVILEGES; ...
2019-04-25 11:01:48
774
原创 爬虫 定时任务
爬虫 定时任务 环境 python3.6 爬虫文件 问题1: 输出汉字会报错 # 首行加这段代码 sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) 问题2: 读取json文件 with open("/root/work/vivo/static/all", "rb") as f: b = json.loads(...
2019-04-16 16:00:03
792
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅