解决办法: a=models.ForeignKey('BookInfo',on_delete=models.CASCADE,) 即在外键值的后面加上 on_delete=models.CASCADE 原因: 在django2.0后,定义外键和一对一关系的时候需要加on_delete选项,此参数为了避 ...
分类:
数据库 时间:
2018-08-26 12:01:49
阅读次数:
245
Cause: dx.jar is missing 解决方案 方案一 copy dx.jar到目标编译版本 方案二 使用其他buildToolsVersion ...
分类:
编程语言 时间:
2018-08-23 16:52:44
阅读次数:
304
Problem UVA10562-Undraw the Trees Accept: 1199 Submit: 8397 Time Limit: 3000 mSec Problem Description Professor Homer has been reported missing. We su ...
分类:
其他好文 时间:
2018-08-21 21:15:26
阅读次数:
195
题目链接:https://nanti.jisuanke.com/?kw=The%20North%20American%20Invitational%20Programming%20Contest%202018 本博客参考了(抄了)巨佬Claris的博客 https://www.cnblogs.com ...
分类:
其他好文 时间:
2018-08-21 21:12:00
阅读次数:
196
public void WriteWord() { Object Nothing = Missing.Value; //由于使用的是COM库,因此有许多变量需要用Missing.Value代替 object format = MSWord.WdSaveFormat.wdFormatDocumentD ...
分类:
其他好文 时间:
2018-08-20 16:41:18
阅读次数:
202
solr查询string类型时,有时需要使之不区分大小写( case insensitive),这时,就需要重新定义数据类型: 如统一转化为小写进行查询: 1 2 3 4 5 6 7 8 <fieldType name="string_ci" class="solr.TextField" sortM ...
分类:
其他好文 时间:
2018-08-20 14:37:27
阅读次数:
200
我在MFC中使用ATL函数A2W的时候报如下的错误: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 【解决方法】 https://www.xuebuyuan.com/ ...
分类:
编程语言 时间:
2018-08-18 21:17:07
阅读次数:
133
exception ORA-00923: FROM keyword not found where expected CreationTime--2018年8月16日10点41分 Author:Marydon 1.情景展示 oracle存储过程 动态sql调用,调用失败: 2.原因分析 在oracl ...
分类:
其他好文 时间:
2018-08-16 13:39:30
阅读次数:
124
The missing piece between MQTT and a SQL database in a M2M landscape Message Queue Telemetry Transport (MQTT) is awesome when it comes to Machine-to-M ...
分类:
其他好文 时间:
2018-08-16 13:31:31
阅读次数:
946
exeption ORA-00907: missing right parenthesis CreationTime--2018年8月16日11点11分 Author:Marydon 1.情景展示 oracle存储过程 动态sql调用,调用失败: 2.原因分析 在oracl数据库中,ddl表示数据库 ...
分类:
其他好文 时间:
2018-08-16 13:30:47
阅读次数:
151