无法找到带有XYZ标签的应用程序 [英] Apps with label XYZ could not be found

查看:164
本文介绍了无法找到带有XYZ标签的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 错误:带有XYZ标签的应用程序无法被发现。你确定你的INSTALLED_APPS设置是否正确? 

其中XYZ表示我想重置的应用程序名称。每次尝试重新设置时,都会出现此错误( manage.py reset XYZ )。显示所有sql代码的工作。



即使 manage.py validate 显示没有错误。



我已经评论过我感动过去三个月的models.py中的每一行代码。 (按功能按功能,按模型模型)即使没有模型,我得到这个错误。



这里 http://code.djangoproject.com/ticket/10706 我发现有关此错误的错误报告。我还应用了一个补丁来分配错误,它引发了一个异常,所以你有一个追溯,但即使没有迹象我的文件的错误发生。



我现在不想粘贴我的代码,因为我编辑的文件中有近1000行代码。



如果有人有同样的错误请告诉我,我可以找到问题。在这种情况下,我可以发布源的重要部分。否则一次就太多了。



感谢您的帮助!!!

解决方案

t指定您正在使用的服务器。使用Apache,您几乎肯定需要重新启动才能生效。如果您正在使用开发工具,请尝试重新启动。如果这不行,你可能需要给我们一些更多的细节。



我也会检查你的路径,因为你可能已经编辑了一个文件,但你可能正在使用另外一个。



加上检查你的数据库中还有什么,因为你以前的一些版本可能会干扰。



<最后,作为最后的手段,我会尝试一个干净的安装(在另一个django实例),看看是否干净,如果那么我会知道我会有冲突,如果不是那么问题在代码。


today I ran into an error and have no clue how to fix it.

Error: App with label XYZ could not be found. Are you sure your INSTALLED_APPS setting is correct?

Where XYZ stands for the app-name that I am trying to reset. This error shows up every time I try to reset it (manage.py reset XYZ). Show all the sql code works.

Even manage.py validate shows no error.

I already commented out every single line of code in the models.py that I touched the last three months. (function by function, model by model) And even if there are no models left I get this error.

Here http://code.djangoproject.com/ticket/10706 I found a bugreport about this error. I also applied one the patches to allocate the error, it raises an exception so you have a trace back, but even there is no sign in what of my files the error occurred.

I don't want to paste my code right now, because it is nearly 1000 lines of code in the file I edited the most.

If someone of you had the same error please tell me were I can look for the problem. In that case I can post the important part of the source. Otherwise it would be too much at once.

Thank you for helping!!!

解决方案

You don't specify which server you're using. With Apache you'll almost certainly need a restart for things to take effect. If you're using the development one try restarting that. If this doesn't work you may need to give us some more details.

I'd also check your paths as you may have edited one file but you may be using a different one.

Plus check what's still in your database, as some of your previous versions may be interfering.

Finally as a last resort I'd try a clean install (on another django instance) and see if that goes cleanly, if it does then I'd know that I'd got a conflict, if not then the problem's in the code.

这篇关于无法找到带有XYZ标签的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆