刘超 2020/6/20 16:31:57$device_info = Capsule::table('zh_device_info')->where('sn', $sn)->first()$updateStart = Capsule::table('zh_app_download')->where ...
分类:
数据库 时间:
2020-06-24 15:44:16
阅读次数:
102
目录如下: 1)编写外部文件manager from app import app from app.models import Todo from flask.ext.script import Manager manager = Manager(app) @manager.command def ...
分类:
其他好文 时间:
2020-06-24 14:13:04
阅读次数:
58
前言 很多时候对于保存在数据库中的数据,我们不会做真正的物理删除,通过软删除的方式将数据屏蔽不序列化出来。 对于删除的字段,可以用is_delete=True表示删除。为了查询方便,我们需要重新定义models中的Manager。 Django3.0官网:点击跳转到官方文档Manager介绍 代码实 ...
分类:
其他好文 时间:
2020-06-24 14:08:53
阅读次数:
51
注意:整个过程都是在 root 用户下 1、root 账户登录,查看 linux 内核版本 2、把 yum 包更新到最新(期间要选择确认,输入 y 即可) 3、安装需要的软件包,yum-util 提供 yum-config-manager 功能,另外两个是 devicemapper 驱动依赖的。 4 ...
分类:
其他好文 时间:
2020-06-23 21:23:30
阅读次数:
57
script script is the only required keyword that a job needs. It's a shell script which is executed by the Runner. For example: job: script: "bundle ex ...
分类:
其他好文 时间:
2020-06-23 18:56:37
阅读次数:
111
Oracle12C配置对外访问 第一步: 开放端口或者关闭防火墙 第二步: 配置Oracle net manager打开Net manager 修改为共享服务器 第三步: 配置连接数打开Database Configuration Assistant 第四步: 修改监听ip找到安装Oracle的AD ...
分类:
数据库 时间:
2020-06-23 13:42:50
阅读次数:
87
1、创建一个Visual C++的Empty Project,如果需要支持Windows XP将Platform Toolset设置为Visual Studio 2013 - Windows XP (v120_xp)。 2、Configuration Type设置为Dynamic Library ( ...
from matplotlib import pyplot as plt import matplotlib from matplotlib import font_manager font = {'family': 'Microsoft YaHei', 'weight': 'bold', 'siz ...
分类:
其他好文 时间:
2020-06-22 23:12:53
阅读次数:
51
After change SessionID data in Session variables is lost Command "Manager.SaveSessionID" will remove all data of old sessionid. There is only one way ...
分类:
其他好文 时间:
2020-06-22 19:41:23
阅读次数:
85
注解 @SpringBootApplication注解 中包括三个注解: @EnableAutoConfiguration:借助@Import的帮助,将所有符合自动配置条件的bean定义加载到IoC容器 @Configuration:Spring Ioc容器的配置类, @ComponentScan: ...
分类:
编程语言 时间:
2020-06-22 19:04:24
阅读次数:
66