需求 在我们的真实环境中当我们出现错误的时候我们要记录下来,便于我们分析差错。 关于日志的代码文件 1 # 自定义日志输出信息 2 LOGGING = { 3 'version': 1, 4 'disable_existing_loggers': True, 5 'formatters': { 6 ...
分类:
其他好文 时间:
2016-08-23 20:28:04
阅读次数:
404
https://www.elastic.co/blog/index-vs-type Who has never wondered whether new data should be put into a new type of an existing index, or into a new in ...
分类:
其他好文 时间:
2016-08-22 19:54:13
阅读次数:
235
一、导入源码 源码可以从Liferay的官方网站上下载。http://www.liferay.com/downloads/liferay-portal/available-releases 下载后解压源码,可以使用Eclipse的File-->Import-->General-->Existing ...
分类:
其他好文 时间:
2016-08-19 19:08:45
阅读次数:
96
https://en.wikipedia.org/wiki/Adapter_pattern It allows the interface of an existing class to be used as another interface. It is often used to make e ...
分类:
其他好文 时间:
2016-08-06 08:34:37
阅读次数:
182
mkdir-makedirectoriesDESCRIPTION:CreatetheDIRECTORY(ies),iftheydonotalreadyexist.Mandatoryargumentstolongoptionsaremandatoryforshortoptionstoo.参数:-m,--mode=MODEsetfilemode(asinchmod),nota=rwx-umask设置文件模式(如chmod),而不是=rwx——umask-p,--parentsnoer..
分类:
其他好文 时间:
2016-08-05 21:41:07
阅读次数:
2022
You are trying to add a non-nullable field 'SKU' to product without a default; we can't do that (the database needs something to populate existing row ...
分类:
其他好文 时间:
2016-08-05 00:56:15
阅读次数:
554
Problem Description
Coco has a tree, whose nodes are conveniently labeled by 1,2,…,n, which has n-1 edge,each edge has a weight. An existing set S is initially empty.
Now there are two kinds of op...
分类:
其他好文 时间:
2016-07-25 01:53:01
阅读次数:
316
一、Window和WindowManagerWindow:表示一个窗口,从下面Window的源码中可以看出它有且只有一个实现类PhoneWindow。
The only existing implementation of this abstract class is
* android.policy.PhoneWindow, which you should instantiat...
CentOS6.8安装图解教程CentOS6.8安装图解教程1、安装CentOS6.8用光盘成功引导系统,会出现下面的界面这里选择第一项,安装或升级现有的系统,回车。界面说明:界面说明:Installorupgradeanexistingsystem安装或升级现有的系统installsystemwithbasicvideodriver安装过程中采用..
分类:
其他好文 时间:
2016-07-19 19:05:08
阅读次数:
197
首先安装pymssql模块pipinstallpymssql
Collectingpymssql
Downloadingpymssql-2.1.3-cp35-cp35m-win_amd64.whl(367kB)
100%|████████████████████████████████|368kB39kB/s
Installingcollectedpackages:pymssql
Foundexistinginstallation:..
分类:
数据库 时间:
2016-07-19 02:43:09
阅读次数:
337