08 2018 档案

摘要:图片来自网络 process_request --> url > process_view --> view > process_response 测试 自定义middleware app01.middlewaretest.py 包含5个方法可以定制 #!/usr/bin/env python3 # 阅读全文
posted @ 2018-08-31 15:12 EngineTang 阅读(109) 评论(0) 推荐(0)
摘要:1 2 3 4 5 阅读全文
posted @ 2018-08-28 22:27 EngineTang 阅读(130) 评论(0) 推荐(0)
摘要:基本步骤 安装 install redisyum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpmyum --enablerepo=remi install redisservice redis startc 阅读全文
posted @ 2018-08-25 20:04 EngineTang 阅读(362) 评论(1) 推荐(0)
摘要:参考/整理/改写 allinone接口 ,实现playbook,adhoc 调用。 日志部分待完善 阅读全文
posted @ 2018-08-25 15:32 EngineTang 阅读(424) 评论(0) 推荐(0)
摘要:ssh = paramiko.SSHClient() # 创建ssh对象ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())ssh.connect(hostname=ip, port=int(port), username=usernam 阅读全文
posted @ 2018-08-24 15:31 EngineTang 阅读(151) 评论(0) 推荐(0)
摘要:使用 阅读全文
posted @ 2018-08-19 22:39 EngineTang 阅读(143) 评论(0) 推荐(0)
摘要:#!/usr/bin/python # --*-- coding:utf-8 --*-- # 解决办法 import json import logging from ansible.parsing.dataloader import DataLoader from ansible.vars.manager import VariableManager from ansible.inven... 阅读全文
posted @ 2018-08-18 23:26 EngineTang 阅读(249) 评论(0) 推荐(0)
摘要:ubuntu pip3 install ansible 依赖关系 apt-get install libssl-dev apt-get install libffi-dev pip3 install cffi # python ansible3 依赖包 pip3 install cryptograp 阅读全文
posted @ 2018-08-11 19:30 EngineTang 阅读(511) 评论(0) 推荐(0)
摘要:yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make ./configure prefix=/usr/local/python3 mak 阅读全文
posted @ 2018-08-07 17:31 EngineTang 阅读(151) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2018-08-06 11:09 EngineTang 阅读(5) 评论(0) 推荐(0)
摘要:import importlib importlib.import_module('app01') importlib.import_module('app01.models') m=importlib.import_module('app01.models') m.UserProfile 阅读全文
posted @ 2018-08-04 12:25 EngineTang 阅读(243) 评论(0) 推荐(0)