- 博客(6)
- 收藏
- 关注
原创 docker mysql Got a packet bigger than 'max_allowed_packet' bytes
Got a packet bigger than ‘max_allowed_packet’ bytes1.可以在my.ini中最后增加一行max_allowed_packet=16M即可 [mysqld] max_allowed_packet = 10M2.进入docker mysql 容器 mysql -u root -p -e "set global net_buffer_len...
2019-09-27 10:40:10
666
原创 docker error
docker mysql 出现错误连接数据库出现,docker 容器又能正常进入 正常进入mysqlGot a packet bigger than ‘max_allowed_packet’ bytes如果你设置了这个set global max_allowed_packet=524288000; #修改 512M后面导致mysql errorpymysql.err.Operat...
2019-09-27 09:45:09
446
原创 centos7安装卸载python3,pip3
yum安装python3 yum install epel-release -y yum install https://centos7.iuscommunity.org/ius-release.rpm -y yum install python36 u -y ln -s /bin/python3.6 /bin/python3 #创建py...
2018-11-29 16:46:09
22904
原创 django建立apps,支持多个app同时工作
1.setting.py#这里添加appsINSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', ...
2018-11-29 16:36:57
1994
原创 django http 转成https请求
http切换到https下请求 settings.py: 添加: SECURE_SSL_REDIRECT = False INSTALLED_APPS = ( "sslserver", ) pip install django-sslserver python ma...
2018-09-10 17:48:33
6847
3
原创 django GET /favicon.ico HTTP/1.1" 404 2247
报错:Not Found: /favicon.ico[10/Sep/2018 09:20:05] "GET /favicon.ico HTTP/1.1" 404 2247创建app/static添加图片:favicon.icourls.py文件下: import os from django.views.generic.base import Redirec...
2018-09-10 17:44:28
8253
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人