自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 PostgreSQL和MYSQL对照

dbname=数据库名称mysql:#终端命令mysqldump -uroot -p dbname < sql文件PostgreSQL:#终端命令/Library/PostgreSQL/10/bin/psql -u账号 -d dbname -f sql文件路径mysql:#终端命令mysql -uroot -pPostgreSQL:#终端命令/路径/PostgreSQL/10/scripts/runpsql.shmysql:create database dbname

2020-10-29 16:10:07 350

原创 {"detail":"Invalid Authorization header. Credentials string should not contain spaces."}

# djangojwt token验证class xxx(APIView): # 这样就直接关闭请求头验证,或者可以自写验证方式 def perform_authentication(self, request): pass

2020-02-18 13:41:59 831

原创 ubuntu 安装mysqlclient失败

Building wheels for collected packages: mysqlclient Building wheel for mysqlclient (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/ipfusion/bin/python3 -u -c ...

2020-01-16 13:57:26 1451

原创 docker的带数据容器迁移或者不带数据镜像迁移

docker把带数据的容器(也携带了初始化的镜像)迁移流程和命令流程说明docker容器 >>>> commit成镜像文件 >>>> 镜像打包成文件 >>>> 传输到另一个服务器 >>>> docker装载此文件docker commit 容器id 自定义的镜像名称docker save -...

2020-01-16 10:26:08 1488 2

原创 FATA[0000] Get http:///var/run/docker.sock/v1.18/containers/json: dial unix /var/run/docker.sock: pe

sudo docker pssudo docker image lssudo docker imagessudo service docker restartsudo service docker stopsudo service docker start

2020-01-14 11:34:40 1110

原创 Django项目 Nginx+uwsgi后端部署文档

1,测试项目是否正常运行使用Django自带的server测试项目正确性:python manage.py runserver 0.0.0.0:8080如可访问正常,则项目正常。若出现无法连接的情况:检查服务器安全组的所需要的端口是否开放– 如果没有开放##WARNGING:如果没有开放端口,就算在后面nginx配置完成,页面也将进不去1.开放端口命令: /sbin/i...

2020-01-02 14:39:33 212

原创 pandas读取excel文档,每列标题及标题下的内容,总行数,总列数

pandas读取excel文档,每列标题及标题下的内容,总行数,总列数import pandas''''''# file_path为excel的文件路径def read_excel(file_path): # 读取excel df=pandas.read_excel(file_path) # len出excel的总行数 line_count=len(df) # len出e...

2020-01-02 14:01:44 4258

空空如也

空空如也

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

TA关注的人

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