01 2019 档案

摘要:centos7用的firewalld 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disab 阅读全文
posted @ 2019-01-19 22:02 coding天荒地老 阅读(1069) 评论(0) 推荐(0)
摘要:虚拟机上安装centos7 minimal 详细操作链接:https://blog.csdn.net/babyxue/article/details/80970526 镜像文件 xxx.iso 本质就是压缩文件 DHCP服务,在计算机启动时分配中IP dns 网管的参数,DNS服务器则是解析域名为I 阅读全文
posted @ 2019-01-19 20:30 coding天荒地老 阅读(248) 评论(0) 推荐(0)
摘要:drf执行流程,APIView,Request -继承APIView(继承自view),重写了dispatch方法 -dispatch方法:1 request对象,被重新封装了,成了新的request 这个方法做的事:self.initialize_request(request, *args, * 阅读全文
posted @ 2019-01-10 16:27 coding天荒地老 阅读(401) 评论(0) 推荐(0)
摘要:为了提高编写代码的速度,以及方面程度,需要知道一些常用的快捷键。 最常用的是: 1.ctrl+c 复制 2.ctrl+d 快速复制上行的内容至下一行 3.Ctrl+shift+n 通过文件名快速查找工程内的文件 4.ctrl +a 全选 5.Ctrl+alt+l 调整代码格式 6.Alt+enter 阅读全文
posted @ 2019-01-10 11:15 coding天荒地老 阅读(2068) 评论(0) 推荐(0)
摘要:#其他的脚本调用django中的程序 import os if __name__ == "__main__": #添加django项目的环境 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rest_work.settings") #模拟启动django程序 import django django.setup()... 阅读全文
posted @ 2019-01-10 09:55 coding天荒地老 阅读(266) 评论(0) 推荐(0)
摘要:解决pycharm问题:module 'pip' has no attribute 'main' 转自: 《解决pycharm问题:module 'pip' has no attribute 'main'》 http://www.cnblogs.com/Fordestiny/p/8901100.ht 阅读全文
posted @ 2019-01-09 13:34 coding天荒地老 阅读(532) 评论(0) 推荐(0)