草庐IT

incorrectly

全部标签

python - Django : Syncdb incorrectly warns that many-to-many field is stale

我有一个Django应用程序,其中一个应用程序与UserProfile具有多对多关系。但是每当我执行syncdb时,它都会警告我app_users是陈旧的字段Thefollowingcontenttypesarestaleandneedtobedeleted:Apps|app_users#settings.pyAUTH_PROFILE_MODULE='kprofile.UserProfile'#Apps/models.pyclassapp(models.Model):....users=models.ManyToManyField(UserProfile)现在我不在View内使用Use

python - OpenCV ORB 描述符 : TypeError: Incorrect type of self (must be 'Feature2D' or its derivative)

我遵循了这个简单的OpenCVFeatureMatchingexample正是:importcv2img=cv2.imread('box.png',0)#queryImageorb=cv2.ORB()#InitiateORBdetector#findthekeypointsanddescriptorswithORBkp1,des1=orb.detectAndCompute(img,None)出现以下错误:TypeError:Incorrecttypeofself(mustbe'Feature2D'oritsderivative)我正在使用OpenCV3.3.1

Jquery砌体: Incorrect gutters until window is resized

我有一个包含三列的百分比宽度容器。我给这些列固定宽度的间距是这样的:width:-webkit-calc(33.33%-16px);width:-moz-calc(33.33%-16px);width:calc(33.33%-16px);这是我的Masonry代码,其中我在调整窗口大小时更改列数:$(window).load(function(){varcolumns=3,setColumns=function(){columns=$(window).width()>959?3:$(window).width()>640?2:1;};setColumns();$(window).res

ios - iPhone X : Incorrect launch-screen orientation used

我在iPhoneX上测试图像启动屏幕时遇到了一个奇怪的行为。所以我想在打开雷达之前请求一些反馈:我创建了一个纵向和横向启动屏幕,尺寸为1125x2436像素(纵向)和2436x1125像素(横向)。然后我将它们添加到Assets目录中并正确拾取它们:到目前为止一切顺利。然后我在iPhoneX模拟器上运行该应用程序(我之前已重置该应用程序以确保未缓存任何内容)并显示(拉伸(stretch)的)横向图像。我验证了png源具有有效的非alpha背景,但仍然无法显示正确的启动屏幕。我注意到肖像图像甚至没有复制到生成的产品中:所以这可能表明Xcode9存在问题。非常欢迎任何反馈,谢谢大家!编辑:

ios - -systemLayoutSizeFittingSize : returning incorrect height for tableHeaderView under iOS 8

关于使用自动布局(onesuchthread)正确调整tableHeaderView大小的话题有很多,但它们往往早于iOS8。我有很多TableView的情况,所有TableView都带有标题,在iOS7下大小正确但在iOS8下不正确使用大多数上述线程支持的代码。在表的Controller中,我有以下方法:-(void)rejiggerTableHeaderView{self.tableView.tableHeaderView=nil;UIView*header=self.headerView;[headersetNeedsLayout];[headerlayoutIfNeeded];

iOS 11 和 iPhone X : UINavigationBar's toolbar spacing incorrect when embedded in UITabBarController

我在iPhoneX模拟器上测试最新的iOS11时遇到了一个烦人的问题。我有一个UITabBarController,在每个选项卡中都有一个UINavigationController,每个UINavigationBar还定义了一个底部工具栏(setToolbarHidden:),默认情况下,它们显示在底部,就在tabBar上方。到目前为止,它一直运行良好,似乎在即将推出的iPhone8和8Plus机型中也运行良好,但在iPhoneX上,工具栏和选项卡栏之间存在差距。我的猜测是toolBar没有意识到显示在tabBar中,然后在底部留下了容纳空间。我想修复它的唯一方法是使用自定义工具栏并

android-studio - Flutter Doctor (Incorrectly?) 报告 Android Studio Flutter Plugin Not Installed

当我运行flutterdoctor时,它报告说我的AndroidStudioFlutter和Dart插件没有安装,即使我已经安装了最新的-事实上,我可以从AndroidStudio构建一个flutter应用程序并将其部署到移动设备。我认为要么是我的某处配置不正确,要么是flutterdoctor有错误。当我运行flutterdoctor-v时,我得到以下信息:d:\Dev\Flutter>flutterdoctor-v[√]Flutter(Channelmaster,v0.5.8-pre.264,onMicrosoftWindows[Version10.0.17134.165],loc

flutter - 添加容器颜色时出错 : Incorrect use of ParentDataWidget

我正在尝试为我的容器添加背景颜色,然后可能使用BoxDecoration()添加一些边框半径。添加color:Colors.red到容器时,它会抛出:IncorrectuseofParentDataWidget.ExpandedwidgetmustbeplaceddirectlyinsideFlexwidgets.Container(color:Colors.red,child:Expanded(child:ListView.builder(padding:EdgeInsets.all(0.0),itemCount:_clients.length,itemBuilder:(contex

c# - "Incorrect Content-Type: "异常抛出 Angular mvc 6 应用程序

我正在我的Angular服务上使用asp.net、mvc6和angularjs开发应用程序。当我向操作方法发出请求时,我没有收到任何传递的数据。当我检查请求时,我可以看到由以下原因引起的异常:Form'((Microsoft.AspNet.Http.Internal.DefaultHttpRequest)this.Request).Form'threwanexceptionoftype'System.InvalidOperationException'Microsoft.AspNet.Http.IFormCollection{System.InvalidOperationExcepti

c# - 如何将 XElement 添加到文档,避免 "incorrectly structured document"错误?

//RemoveelementwithIDof1varuserIds=fromuserindocument.Descendants("Id")whereuser.Value=="1"selectuser;userIds.Remove();SaveAndDisplay(document);//AddelementbackvarnewElement=newXElement("Id","0",newXElement("Balance","3000"));document.Add(newElement);SaveAndDisplay(document);添加元素返回block是问题所在。当它到